Skip to content
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

Select element required validation #231

Closed
dpinheiro opened this issue May 7, 2014 · 0 comments
Closed

Select element required validation #231

dpinheiro opened this issue May 7, 2014 · 0 comments

Comments

@dpinheiro
Copy link

When using a choice element, rendered by a select element, if the empty_value is not null and the required is set to true, the validation still pass even if no option is selected. This issue is occurring at least on Chrome 33.0.1750.152 @ Linux.

Looking at the source code, I guess the problem is that no empty value is associated to the option of the empty_value. Adding value="" after option in the line 197 of file bootstrap.html.twig solved my problem.

florianeckerstorfer pushed a commit that referenced this issue May 29, 2014
Add empty value in empty_value option. Fixes #231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant