From d6b6832a1dfd5d54ed59365228c5e98a606c87df Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 22 Jan 2026 08:15:40 +0200 Subject: [PATCH] fix(promoted_attributes): checkbox not displaying initial value properly (closes #8062) --- apps/client/src/widgets/PromotedAttributes.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx index 0ec79725a..a9618d3a6 100644 --- a/apps/client/src/widgets/PromotedAttributes.tsx +++ b/apps/client/src/widgets/PromotedAttributes.tsx @@ -217,6 +217,7 @@ function LabelInput({ inputId, ...props }: CellProps & { inputId: string }) { id={inputId} type={LABEL_MAPPINGS[definition.labelType ?? "text"]} value={valueAttr.value} + checked={definition.labelType === "boolean" ? valueAttr.value === "true" : undefined} placeholder={t("promoted_attributes.unset-field-placeholder")} data-attribute-id={valueAttr.attributeId} data-attribute-type={valueAttr.type}