Skip to content
Discussion options

You must be logged in to vote

@pcp-atobe : Your zod schema defines "NumberInput" as a mandatory field therefore when parsing and validating data by zod library, the target data is not valid and stops at validation phase instead of continuing to "refinement" phase.

Switching "NumberInput" to optional will solve the issue. Working demo: https://codesandbox.io/s/nostalgic-sara-i01e94?file=/src/App.js:364-372

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@apn-atobe
Comment options

Comment options

You must be logged in to vote
1 reply
@apn-atobe
Comment options

Answer selected by apn-atobe
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zuracode
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