You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, if the emails do not have the proper format nothing happens on submission due to the client-side validation failing but neither the Error component nor the props.errors show what happened.
If I change the zod schema to something like requiring that the array has a min number of elements emails: z.array(z.string().email()).min(2) and force it to fail by submitting less elements than required I can see the error as expected so it looks like everything is properly setup and that the problem is when validating the elements inside the array.
Is this a bug or I'm missing something? Thanks
The text was updated successfully, but these errors were encountered:
I've got a zod schema as follows
And I'm using a custom input for this field:
Apparently, if the emails do not have the proper format nothing happens on submission due to the client-side validation failing but neither the
Error
component nor theprops.errors
show what happened.If I change the zod schema to something like requiring that the array has a min number of elements
emails: z.array(z.string().email()).min(2)
and force it to fail by submitting less elements than required I can see the error as expected so it looks like everything is properly setup and that the problem is when validating the elements inside the array.Is this a bug or I'm missing something? Thanks
The text was updated successfully, but these errors were encountered: