-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge] [Bootstrap 4] Fix validation error design for expanded choiceType #24837
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
Conversation
Note that this could break user space choice widgets which rely on |
@@ -105,6 +105,7 @@ | |||
{%- else -%} | |||
{%- if not valid -%} | |||
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control is-invalid')|trim}) %} | |||
{% set valid = true %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about instead just passing true
in the form_widget()
call below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that works too. Thanks
Thank you @ostrolucky. |
… expanded choiceType (ostrolucky) This PR was merged into the 3.4 branch. Discussion ---------- [TwigBridge] [Bootstrap 4] Fix validation error design for expanded choiceType | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Unfortunately I didn't test #24802 with expanded option set to true, sorry about that. Without this fix, it applies form error style twice. Before:  After:  Commits ------- 39083a2 [TwigBridge] [Bootstrap 4] Fix validation error design for expanded choiceType
Unfortunately I didn't test #24802 with expanded option set to true, sorry about that. Without this fix, it applies form error style twice.
Before:

After:
