-
Notifications
You must be signed in to change notification settings - Fork 181
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
Issue with "has-error" class on <form> element #263
Comments
@sandello-alkr Cheers for the tip. I'm still convinced that the current (out-of-the-box) implementation isn't a good one. Adding My situation: |
Any progress on this? |
Fixed conflict with BS error class (fixes #263)
Hey,
I stumbled upon an issue with the form (error) rendering. This code snippet in the
form_start
Twig block leads to bad form error rendering:https://github.com/braincrafted/bootstrap-bundle/blob/develop/Resources/views/Form/bootstrap.html.twig#L739
The result is that all children are rendered as they have errors themselves, because the CSS from Bootstrap is simply
I don't know if there's a reason behind adding that class to the form root as Bootstrap hasn't anything about that in their docs. I fixed this by overriding the Twig block and renaming the error class there.
Cheers
Matthias
The text was updated successfully, but these errors were encountered: