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

Focus not working with FieldArray and server side validation #33

Open
vrobert-ipsosenso opened this issue Jan 3, 2022 · 0 comments
Open

Comments

@vrobert-ipsosenso
Copy link

Are you submitting a bug report or a feature request?

bug

What is the current behavior?

  1. Create a form with a field array (subForm in the demo) and one field (firstName in the demo)
  2. Add validation to subForm's fields
  3. Add server side validation to firstName
  4. Trigger only the server side validation
  5. The error is displayed, but firstName isn't focused

What is the expected behavior?

firstName should be focused

Sandbox Link

https://codesandbox.io/s/react-final-form-focus-on-first-error-forked-vz1kh?file=/src/validate.js

What's your environment?

final-form 4.20.2
final-form-arrays 3.0.2
final-form-focus 1.1.2
react 16.13.1
react-dom 16.13.1
react-final-form 6.5.0
react-final-form-arrays 3.1.2

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