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

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

Async validate prop always skips HTML5 validations #6

Open tjwallace opened 6 years ago

tjwallace commented 6 years ago

Are you submitting a bug report or a feature request?

Bug

What is the current behavior?

If you pass in an async validate prop to Field, the HTML5 validations are never checked (because of this code).

What is the expected behavior?

The async validation will be resolved and used before continuing to the HTML5 validations.