final-form / react-final-form-html5-validation

A swap-in replacement for 🏁 React Final Form's <Field> component to provide HTML5 Validation
MIT License
57 stars 8 forks source link

HTML5 Field validation is not invoked on external form submit #14

Open ackvf opened 5 years ago

ackvf commented 5 years ago

Recommended practices here https://github.com/final-form/react-final-form/blob/master/docs/faq.md#how-can-i-trigger-a-submit-from-outside-my-form don't trigger HTML5 validation, luckily another method can be used to work around the issue.

html-validation

I wonder if this is design limitation or a bug.

https://codesandbox.io/s/7kk9w2ryzq