final-form / final-form/react-final-form

Asynchronous Field-Level Validation Example does not work properly

Open
#836 1 comment 0 reactions 0 assignees View on GitHub
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

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.