Yup validator not validating an array of object when using Schema.when #10771
Unanswered
dextersiah
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following schema here
And the useForm hook
When though the defaultValue of has_experience is '1', When I submit my form it returned undefined in the console however the handleSubmit callback function was fired.
Anyone is able to assist me on this?
Versions
"@hookform/resolvers": "^3.1.1",
"react-hook-form": "^7.45.4",
"yup": "^1.2.0"
Beta Was this translation helpful? Give feedback.
All reactions