Warning: value
prop on input
should not be null when using watch + zod schema + setValue
#11868
Unanswered
khurram-ansari
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproduction link of the issue
https://stackblitz.com/edit/vitejs-vite-gjacev?file=src%2FApp.tsx
I have a conditional form like this.
I have two fields in schema
shipping
andbilling
and I have assigned the default value forbilling
asnull
Here is my schema and default values
SCHEMA
DEFAULT VALUES
And I watching the radio button value to toggle the form like this
ADDRESSFIELDS COMPONENT looks like this
But when I am toggling the form I am getting this ERROR in console
Beta Was this translation helpful? Give feedback.
All reactions