Closed OlliL closed 5 months ago
Thanks for reporting this and for the simple example, this is a nasty one indeed and wasn't just limited to zod.
I published v4.12.8
with the fix, please upgrade.
Looks good now with 4.12.8. Thanks for fixing this so fast!
What happened?
Just create a basic form with a basic field - useForm(), useField() with zod validation. Form submission is not prevented if there are validation errors
I've made a small sample app as showcase for this error. I put in two input field with one static schema and one computed schema based on the input of the first field. Both validations work fine with 4.12.6, but both stop to work with 4.12.7. You can remove the "surname" related code if you fear that causes the problem but even the basic "name" validation stuff alone does no longer work.
Reproduction steps
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
-
Code of Conduct