From bb1f573088db2a825b6ed8eaa5cc395f78111dbe Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Sat, 21 Dec 2024 12:08:06 +0100 Subject: [PATCH] Fix disabled attribute for select and checkbox --- ui/lib/core/addon/components/form-field.hbs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/lib/core/addon/components/form-field.hbs b/ui/lib/core/addon/components/form-field.hbs index 4c427b2ad8d5..cfb5b1041848 100644 --- a/ui/lib/core/addon/components/form-field.hbs +++ b/ui/lib/core/addon/components/form-field.hbs @@ -79,6 +79,7 @@ name={{@attr.name}} id={{@attr.name}} onchange={{this.onChangeWithEvent}} + disabled={{and @attr.options.editDisabled (not @model.isNew)}} data-test-input={{@attr.name}} > {{#if @attr.options.noDefault}} @@ -335,7 +336,7 @@ {{else if (or (eq @attr.type "boolean") (eq @attr.options.editType "boolean"))}}