Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

issue: Multi-page form validation issue with react-hook-form and arrays #11878

Closed
1 task done
seanmiddaugh opened this issue May 10, 2024 · 0 comments
Closed
1 task done

Comments

@seanmiddaugh
Copy link

Version Number

7.51.4

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/affectionate-darkness-ccxqxh

Steps to reproduce

  1. Enter a value into the input on page 1
  2. Click "Next"
  3. When on page 2, click "Back"
  4. When on page 1 again, click "Next"

The form doesn't let you go to page 2 anymore because it's validating an error on page 2. I'm not on this page so it should't validate it. It let me bypass this on page load so I'm not sure why it does this when I click back.

Expected behaviour

I want to be able to go back and forth from page 1 and 2 freely without validating page 2. Page 2 should only validate if I try to click "Next" on page 2.

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@seanmiddaugh seanmiddaugh changed the title Multi-page form validation issue with react-hook-form and arrays issue: Multi-page form validation issue with react-hook-form and arrays May 10, 2024
@react-hook-form react-hook-form locked and limited conversation to collaborators May 10, 2024
@bluebill1049 bluebill1049 converted this issue into discussion #11879 May 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant