diff --git a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig index e7279c330e..8b155a8bda 100644 --- a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezselection.html.twig @@ -1,6 +1,7 @@ {% use '@ibexadesign/ui/form_fields/dropdown_widget.html.twig' %} {%- block ezplatform_fieldtype_ezselection_widget -%} - {% set attr = attr|merge({'class': 'ibexa-data-source__input ibexa-data-source__input--selection', disabled: attr.readonly|default(false) }) %} + {% set attr = attr|merge({'class': 'ibexa-data-source__input ibexa-data-source__input--selection' }) %} + {% set dropdown_disabled = attr.readonly|default(false) %} {{ block('choice_widget') }} {%- endblock -%} diff --git a/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig b/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig index edbe2fa645..c803e8dad1 100644 --- a/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig @@ -20,7 +20,7 @@ translation_domain: choice_translation_domain|default(false), custom_form: false, class: attr.dropdown_class|default(''), - is_disabled: attr.disabled|default(false) or disabled|default(false), + is_disabled: attr.disabled|default(false) or disabled|default(false) or dropdown_disabled|default(false), is_hidden: attr.dropdown_hidden|default(false), is_small: attr.is_small|default(false), is_ghost: attr.is_ghost|default(false),