[X] Before posting an issue, read the FAQ and search the previous issues.
Description
A clear and concise description of what the bug is, and, unless obvious, what you expected instead.
I start the form with skeleton modal.
The form contains one text field, and two Ids (selected via
If I change the id1 and id2 order in the schema declaration z.object({id2, id1}) the behaviour is reversed - the id2 is '' (empty string) and id1 is undefined so it is selected.
If applicable, a MRE
Use one of these stackblitz templates to create a minimal reproducible example that you can link to here:
Description A clear and concise description of what the bug is, and, unless obvious, what you expected instead. I start the form with skeleton modal. The form contains one text field, and two Ids (selected via
If I change the id1 and id2 order in the schema declaration z.object({id2, id1}) the behaviour is reversed - the id2 is '' (empty string) and id1 is undefined so it is selected.
If applicable, a MRE Use one of these stackblitz templates to create a minimal reproducible example that you can link to here: