final-form / final-form/react-final-form-html5-validation
Form validation do not run for untouched fields after initialValues change
- 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 report
### What is the current behavior?
Asynchronously reinitialized fields (form prop `initialValues` changes) do not trigger validation. Meaning that untouched fields with populated values from `initialValues` fail on form validation.
### What is the expected behavior?
Validation should happen on the form reinitialize, whenever prop `initialValues` changes
### Sandbox Link
[Codesandbox example](https://codesandbox.io/s/react-final-form-html5-validation-example-forked-w83bo)
### Versions:
```
"final-form": "4.20.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-final-form": "6.5.3",
"react-final-form-html5-validation": "1.1.0",
```
Contributor guide
Assessment
This issue has not been assessed yet.