Skip to content

Commit

Permalink
Respect is_required and is_disabled in Field controls.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Oct 5, 2024
1 parent adcf97a commit e238177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/02-molecules/field/field.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e238177

Please sign in to comment.