final-form / final-form/react-final-form
Field level submission errors are not propagated to meta.submissionError
- 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?
Submission errors to "deep" fields do not propagate to field level `meta.submissionError` prop. I.e. if one would have a form with state of
```TypeScript
{
'profile.userName': 'Aasd',
}
```
and submitting this data would result in the following error object from submit function:
```TypeScript
{
'profile.userName': 'This value wont do',
}
```
The above error will not show up in the field for `profile.userName`.
See sandbox for reproduction: [https://codesandbox.io/s/0o9lmozrmv](https://codesandbox.io/s/0o9lmozrmv)
### What is the expected behavior?
The field meta should have `submissionError` set to 'This value wont do'.
### Sandbox Link
https://codesandbox.io/s/0o9lmozrmv
### What's your environment?
"react-final-form": "^3.6.5"
"final-form": "^4.9.1"
### Other information
Contributor guide
Assessment
This issue has not been assessed yet.