Skip to content
Discussion options

You must be logged in to vote

Thanks for providing the demo. The button still was not enabled after clicking the checkbox, but I resolved this thanks to your pointer with:

username: z.coerce.string().email().optional().or(z.literal(""))

The underlying issue apparently is the email validation, for more context see: colinhacks/zod#310

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@slhck
Comment options

@leapful
Comment options

leapful Aug 21, 2023
Collaborator

@slhck
Comment options

Answer selected by slhck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested duplicated duplicated issue
3 participants
Converted from issue

This discussion was converted from issue #10755 on August 20, 2023 04:12.