Skip to content

Yup schema that should allow null default value, and requires object on submit #10618

Answered by ivomasterche
ivomasterche asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to deal with this using the asegarra suggestion https://github.com/react-hook-form/resolvers/issues/575#issuecomment-1693405121.I just specified the MyInputType here

resolver: yupResolver< InputType>(schema),

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ivomasterche
Comment options

Comment options

You must be logged in to vote
2 replies
@wethinkagile
Comment options

@ivomasterche
Comment options

Answer selected by ivomasterche
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@YuriiLunovSendient
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants