final-form / final-form/react-final-form
Asynchronous Field-Level Validation Example does not work properly
Open
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
### Are you submitting a **bug report** or a **feature request**?
Bug report
### What is the current behavior?
_STEPS TO REPRODUCE:_
- Access: [Asynchronous Field-Level Validation Example](https://codesandbox.io/s/wy7z7q5zx5)
- Click on the submit button/focus on the `Username` field and unfocus then.
Still able to submit without the `Username` value.
### What is the expected behavior?
The `Required` validation text should be shown following the code:
```
const usernameAvailable = simpleMemoize(async value => {
if (!value) {
return "Required";
}
...
```
### Sandbox Link
https://codesandbox.io/s/wy7z7q5zx5
Contributor guide
Assessment
This issue has not been assessed yet.