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

Async validate prop always skips HTML5 validations

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
56
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### 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](https://github.com/final-form/react-final-form-html5-validation/blob/master/src/Html5ValidationField.js#L66-L72)).

### What is the expected behavior?

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.