final-form / final-form/final-form-focus
After reseting form decorator focuses first invalid field.
Open
- Dominant language
- TypeScript
- Stars
- 81
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Hello! I'm
### What is the current behavior?
I use the FormSpy component to watch the `submitSucceeded` event. If this event occurs, I do `this.props.form.reset()`. The form's values are updated, and then the first invalid field gets into focus.
### What is the expected behavior?
No focus on reset.
### Sandbox Link
[Example](https://codesandbox.io/embed/react-final-form-focus-on-first-error-wdjk9)
### What's your environment?
* final-form": "^4.18.4",
* final-form-focus": "^1.1.2",
* node: v8.15.1
* MacOS Mojave
* Any browser
Contributor guide
Assessment
This issue has not been assessed yet.