Replies: 1 comment
-
I'm pretty the answer lies somewhere with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs say that the value for
setValue
should not be undefined. I have the following field zod schemaI have this hooked up to a text field
I don't know how to clear this field to the default value when I shouldn't pass in undefined (cite) and I can't pass an empty string because typescript yells at me for it not being a number. I don't want to pass in an arbitrary number. I don't want to use
resetField("myField")
because then I can't run validation with that. Part of the confusion is that the text input is passing it's value (a string), but we can't pass a string withsetValue
.Beta Was this translation helpful? Give feedback.
All reactions