haacked/aspnet-client-validation

Consider adding `novalidate` to forms to disable Constraints API

andrewlock opened this issue · 1 comments

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?

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