Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ostrolucky commentedNov 6, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Note that this could break user space choice widgets which rely on |
| {%-else -%} | ||
| {%-ifnotvalid -%} | ||
| {%-setattr=attr|merge({class: (attr.class|default('') ~' form-control is-invalid')|trim}) %} | ||
| {%setvalid=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 passingtrue in theform_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
fabpot commentedNov 9, 2017
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
Uh oh!
There was an error while loading.Please reload this page.
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:
