cferdinandi / validate

A lightweight form validation script.
MIT License
230 stars 39 forks source link

Update validate.js #47

Open tbb2 opened 6 years ago

tbb2 commented 6 years ago

If you make your own validation (e.g. I had to compare the values of 2 fields) using field.setCustomValidity(customErrorMessageOfSomeKind) the generic error will currently be shown, just have to add these 3 lines to catch the right error message (I apologize for being lazy and just changing this one file and not in the dist folder etc.)

cferdinandi commented 6 years ago

Possible duplicate of https://github.com/cferdinandi/validate/pull/46?

tbb2 commented 6 years ago

Maybe 2 sides of the same issue? #46 is just about the polyfill, but there's apparently also no support for it without the polyfill

cferdinandi commented 6 years ago

Sorry for the delay. I'll merge this soon!