You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The admin bundle set widget's class attribute with "form-control form-control" (which is strange since the class is repeated twice). I would expect both my custom class and the one of the template theme.
As soon as I disable the bundle, my custom class is properly set.
The text was updated successfully, but these errors were encountered:
@GregOriz if you could watch the code and find a good solution, please make a pull request for it, I could review it, if not I will try to reproduce and fix more later
Hello there,
I'm trying to add class attribute to some of my form's widgets.
I tried add this class from both the FormType and the twig template.
{{ form_widget(form, { 'attr' : {'class' : 'my_custom_class' } } }}
The admin bundle set widget's class attribute with "form-control form-control" (which is strange since the class is repeated twice). I would expect both my custom class and the one of the template theme.
As soon as I disable the bundle, my custom class is properly set.
The text was updated successfully, but these errors were encountered: