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

Incredible bug in v2.0.0

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
81
Forks
18
PR merge metrics
No merged PRs in 30d

Description

v2.0.0 has an obvious regression, that I'm surprised made it into the release.

Given a form with multiple simple text inputs:
* typing a character into an input automatically switches the focus to the next input (this repeats every time a character is typed into an input)
* if there is an input with an error, typing a character into any other input automatically switches the focus to the input with the error (I thought this is supposed to happen only after the form is submitted...)

How this made it in is beyond me.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the regression in v2.0.0 with a form containing multiple simple text inputs and an input with an error. Trace the focus behavior while typing and after submission, then verify that typing does not move focus and that the first errored field receives focus only after an attempted submission.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.