final-form / final-form/react-final-form
meta.active not true when using autofocus
- 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?
meta.active is not set to true when using autofocus
### What is the expected behavior?
When a field has autofocus on it and is initially rendered, the meta.active should be true
### Sandbox Link
https://codesandbox.io/s/0eob8
If you look at the console.log output on the first render, meta.active is false. If you blur, then refocus the field, meta.active is true. I would expect meta.active to be true on an autofocued field.
### What's your environment?
Lastest versions of FF and RFF, tested in chrome and FF and same issue.
### Other information
Contributor guide
Assessment
This issue has not been assessed yet.