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

Checkbox validation only after focus change

Open
#579 4 comments 2 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**?

Maybe it's a feature but it seems more like a bug.

### What is the current behavior?

![Peek 2019-08-06 12-58](https://user-images.githubusercontent.com/43745180/62535000-9e092180-b84a-11e9-8682-b9e5d59697ad.gif)

If I click the checkbox (which is required) and uncheck it, the validation only takes place once I click somewhere else.

### What is the expected behavior?

I would expect the validation to happen as soon as I uncheck the box.

### Sandbox Link

Please have a look at the example in [codesandbox](https://codesandbox.io/s/react-final-form-field-level-validation-example-vvl4w?fontsize=14)

### What's your environment?

"react-final-form": "^6.3.0",
"final-form": "^4.16.1",

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.