We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Currently, root errors are onChange/append written tomyArray.message and onSubmit written to myArray.root.
onChange
append
myArray.message
onSubmit
myArray.root
To Reproduce Steps to reproduce the behavior:
formState.errors.people.message
formState.errors.people.root.message
Codesandbox link (Required) https://codesandbox.io/s/zod-resolver-root-inconsistency-m57c85?file=/src/App.tsx
Expected behavior I would expect that the array errors are always written to myArray.root, no matter if onChange or onSubmit is called.
Versions react-hook-form: 7.46.0 @hookform/resolvers: 3.3.1
react-hook-form
@hookform/resolvers
The text was updated successfully, but these errors were encountered:
Downgrade package to avoid inconsistent root errors
28ca74e
Several open issues, e.g. react-hook-form/resolvers#627
No branches or pull requests
Describe the bug
Currently, root errors are
onChange
/append
written tomyArray.message
andonSubmit
written tomyArray.root
.To Reproduce
Steps to reproduce the behavior:
formState.errors.people.message
formState.errors.people.root.message
Codesandbox link (Required)
https://codesandbox.io/s/zod-resolver-root-inconsistency-m57c85?file=/src/App.tsx
Expected behavior
I would expect that the array errors are always written to
myArray.root
, no matter ifonChange
oronSubmit
is called.Versions
react-hook-form
: 7.46.0@hookform/resolvers
: 3.3.1The text was updated successfully, but these errors were encountered: