Skip to content

After reseting form decorator focuses first invalid field. #14

@ArtyomResh

Description

@ArtyomResh

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

What's your environment?

  • final-form": "^4.18.4",
  • final-form-focus": "^1.1.2",
  • node: v8.15.1
  • MacOS Mojave
  • Any browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions