final-form / final-form/react-final-form

Method form.focus doesn't work

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

Looks like a bug.

### What is the current behavior?

I take the object `form` from `FormRenderProps` and try to focus on a field by method `form.focus('field_name')`, but it doesn't work.

### What is the expected behavior?

It is possible to focus on the field by method `form.focus()` and field name.

### Sandbox Link

https://codesandbox.io/s/strange-keller-x6c08?file=/src/App.js

### What's your environment?

- `final-form@4.20.1`
- `react-final-form@6.5.2`
- `react@17.0.0`

### Other information

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.