Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect is_required and is_disabled in Field controls. #405

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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