Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field is incorrectly focussed when using Wizard #34

Open
RyanxWolton opened this issue Jan 6, 2022 · 0 comments
Open

Field is incorrectly focussed when using Wizard #34

RyanxWolton opened this issue Jan 6, 2022 · 0 comments

Comments

@RyanxWolton
Copy link

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

When using a Wizard form with final-form-focus, similar to the react final form docs example, linked in the sandbox below, when submitting one page of the form, the first required input on the next page is focussed, even though no error is displayed, this also means the error is then displayed on any click causing blur of the input

What is the expected behavior?

Inputs are only focussed on each page after clicking 'Next' or 'Submit'

Sandbox Link

https://codesandbox.io/s/github/final-form/react-final-form/tree/master/examples/wizard?file=/Wizard.js:1831-1835

What's your environment?

final-form-focus: 1.1.2
final-form: 4.19.1
react-final-form: 6.4.0
browser: Firefox Developer Edition
node version: 12.13.0

Other information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant