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

Consider adding novalidate to forms to disable Constraints API #35

Open
andrewlock opened this issue Apr 3, 2023 · 1 comment
Open

Comments

@andrewlock
Copy link
Contributor

jQuery unobtrusive validation disables the default Constraints API behaviours. Without it, the constraints validation warnings interfere with the default validation messages:

image

The solution is to add novalidate="novalidate" to the containing <form> element. Is that something you think the library should do? It would make the library even more of a drop in replacement for unobtrusive validation?

@haacked
Copy link
Owner

haacked commented Apr 3, 2023

Ah yeah, it probably should disable by default. But allow for overriding that in the bootstrap method.

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

Successfully merging a pull request may close this issue.

2 participants