Open marleau opened 1 year ago
If an invalid array item exists, the error messages keep accumulating for each invalid array item when adding/removing an array item and validating with zod.
felte (Svelte), @felte/validator-zod
add invalid item
remove
https://svelte.dev/repl/024824e323544a8fa08b6abc4b09f33c?version=4.2.0
No response
I did a little more testing. I see this issue for any invalid field. It doesn't have to be a field array.
Here is a an updated reproduction: https://svelte.dev/repl/d63036e3a4a345748909a6c082cd809f?version=4.2.0
Describe the bug
If an invalid array item exists, the error messages keep accumulating for each invalid array item when adding/removing an array item and validating with zod.
Which package/s are you using?
felte (Svelte), @felte/validator-zod
Environment
To reproduce
add invalid item
add invalid item
remove
buttonSmall reproduction example
https://svelte.dev/repl/024824e323544a8fa08b6abc4b09f33c?version=4.2.0
Screenshots
Additional context
No response