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

Problem using attribute required #1095

Closed
repher opened this issue Jul 9, 2015 · 1 comment
Closed

Problem using attribute required #1095

repher opened this issue Jul 9, 2015 · 1 comment

Comments

@repher
Copy link

repher commented Jul 9, 2015

Hello!

I'm working with cakephp and therefore getting on all reuired input field the attribute "required" set. This does not work with bootstrap-select because it's hidden and therefore the user doesn't get any feedback.

Original:

<select name="somename" required="required" id="someid" >
    ...
</select>

Error message in Chrome:
An invalid form control with name='membership[0][year]' is not focusable.

The required attribute gets added by several framworks for all required fields. For example CakePHP.

A possible solution would be to remove all required attributes on selects that get hidden by bootstrap-select. Since there should always be some server side validation, this would not hurt anybody.

Bernhard

@caseyjhol
Copy link
Member

Duplicate of #514.

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

2 participants