From a5b6f237052c58cae5d9032397d28375865c5b3f Mon Sep 17 00:00:00 2001 From: Vukile Langa Date: Mon, 20 Jul 2026 16:35:31 +0200 Subject: [PATCH] fix(ui): ignore scalar values for field props --- .../component-formbuilder/src/components/config/Elements.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/app/components/component-formbuilder/src/components/config/Elements.js b/packages/client/app/components/component-formbuilder/src/components/config/Elements.js index a3405f8e4..aaae2d4be 100644 --- a/packages/client/app/components/component-formbuilder/src/components/config/Elements.js +++ b/packages/client/app/components/component-formbuilder/src/components/config/Elements.js @@ -991,6 +991,11 @@ const getFieldOptions = formCategory => { propertiesOrder.forEach(propName => { if (opt[propName] === null) return // to skip the property + // A scalar override (e.g. editDate's isReadOnly: 'true') forces the + // saved value directly; it isn't a component descriptor, so don't turn + // it into an editable control in the field settings. + if (opt[propName] && typeof opt[propName] !== 'object') return + const prop = opt[propName] || baseProps[propName] || prototypeProps[propName] @@ -1012,7 +1017,6 @@ const getFieldOptions = formCategory => { value: opt.fieldType, // To work with Select component isReadOnly: opt.isReadOnly, isS3Component: opt.isS3Component, - readonly: opt.readonly, componentOptions, }) })