-
I'm using RHF with zod, validating form with checkbox. |
Beta Was this translation helpful? Give feedback.
Answered by
jira-zz
Jan 3, 2024
Replies: 1 comment 2 replies
-
Unable to reproduce. Please take your time to modify this codesandbox to display the behavior you are describing. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue was I used defaultValue instead of defaultChecked on the checkbox. After fixing that it works as expected.
Thanks