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
Expected behavior: field becomes optional and default value is selected.
Actual behavior: field becomes optional and default value is null/undefined (empty)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I have the following zod field
By default all zod fields are required, so I see the asterisk after the input label and default value as well (for select for example).
But, because I provided default value, I don't want user to see that asterisk.
So,
I added
.optional()
Expected behavior: field becomes optional and default value is selected.
Actual behavior: field becomes optional and default value is null/undefined (empty)
Is is a bug?
Beta Was this translation helpful? Give feedback.
All reactions