-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge] label class incorrectly applied to expanded choice field #40005
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
Comments
Hey, thanks for your report! |
Friendly ping? Should this still be open? I will close if I don't hear anything. |
Yes, the bug is still present. |
I also reproduced the bug. |
Anyone willing to investigate the issue and submit a PR? |
Related #18318 |
Can you then please check if the linked PR solves this? |
@xabbuh Yes, your PR fixes the issue I described. However it does not seem like proper solution because you just deleted some code. I would guess it was put there for a reason :) |
Symfony version(s) affected: Symfony 4.4, but it seems to be the same on 5.* also.
Description
Seems to be a bug for some of the form templates for choice field with
expanded
andmultiple
settings set to true.What I want is to add css class to label of choice class but not the choices. I add
'label_attr' => ['class' => 'red']
as I would to any field. And it actualy works if I setexpanded
to false.It seems all bootstrap templates suffer from same problem but not
div
andtable
templates.It this a bug in bootstrap templates?
How to reproduce
The text was updated successfully, but these errors were encountered: