-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array of strings values defaults to empty array #60
Comments
I think that the |
I just removed // minimal reproducible example
// bug appears with any primitive type, as long as there's an array
z.number().array()
z.string().array() |
Yes, confirmed that posting an empty value returns an array! It must have something to do with the type being detected and coerced as an array if empty. Will take care of that straight away. |
v0.6.3 just released which should fix this. Let me know if things are fine now! |
Awesome, thanks for the quick fix ! 🎉 |
First of all, great lib !
I am trying to group several inputs into an array of values, an array of strings. For the example, the array will be of size 2.
When submitting the form, I get empty arrays instead of strings.
With one of the inputs filled in:
I may have made a mistake somewhere, and if so please tell me how to do it the right way!
Reproduction repo : https://github.com/oganexon/superform-string-url-array-bug
The text was updated successfully, but these errors were encountered: