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

meta.active not true when using autofocus

Open
#558 3 comments 25 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**?

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

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.