From e238177b45cefd17d627433bb4852c808b42930e Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Sat, 5 Oct 2024 17:51:45 +1000 Subject: [PATCH] Respect `is_required` and `is_disabled` in Field controls. --- components/02-molecules/field/field.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/02-molecules/field/field.twig b/components/02-molecules/field/field.twig index bfbc4298..8ba27ea4 100644 --- a/components/02-molecules/field/field.twig +++ b/components/02-molecules/field/field.twig @@ -75,9 +75,9 @@ options: c.options is defined ? c.options : options is defined ? options : [], is_multiple: c.is_multiple is defined ? c.is_multiple : is_multiple is defined ? is_multiple : false, placeholder: placeholder is defined ? placeholder : '', - is_required: is_required, + is_required: c.is_required is defined ? c.is_required : is_required, is_invalid: is_invalid, - is_disabled: is_disabled, + is_disabled: c.is_disabled is defined ? c.is_disabled : is_disabled, is_checked: c.is_checked is defined ? c.is_checked : false, attributes: c.attributes is defined ? c.attributes : '', modifier_class: c.modifier_class is defined ? 'ct-field__control ' ~ c.modifier_class : 'ct-field__control',