colinaut / alpinejs-plugin-simple-validate

Simple Alpine form validation plugin
97 stars 4 forks source link

Disable HTML5 validation #7

Closed 64knl closed 1 year ago

64knl commented 1 year ago

I would like to suggest the plugin disables browser validation, this way we can rely on browser validation as a fallback, but it will not interfere with the plugin as it currently does.

So when connection to the form it could add 'novalidate' as an attribute to the form.

colinaut commented 1 year ago

This change makes sense to me so I just implemented it in the new 1.7.14 release. Thanks!