final-form / final-form/final-form-focus

After reseting form decorator focuses first invalid field.

Open
#14 2 comments 0 reactions 0 assignees View on GitHub
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

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.