vee-validate
vee-validate copied to clipboard
[Zod] Unexpectedly trigger the `refine` or `superRefine` validation.
What happened?
Hi~
I found a wierd situation.
I'm using the Zod validation schema, and I add a refine declaration on Email field, and I set Email field validateOnValueUpdate: false.
Though the refine validation will be triggered when I input letters into the Email field every time,
and when I trigger other fields' validation, the refine validation on the Email field will be triggered as well.
Reproduction steps
Reproduce demo: https://stackblitz.com/edit/vee-validate-v4-async-validation-7ffbmq?file=package.json,src%2FApp.vue
I only forked the official demo: https://stackblitz.com/edit/vee-validate-v4-async-validation, and add latest zod and @vee-validate/zod packages.
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
- [x] Firefox
- [X] Chrome
- [ ] Safari
- [x] Microsoft Edge
Relevant log output
No response
Demo link
https://stackblitz.com/edit/vee-validate-v4-async-validation-7ffbmq?file=package.json,src%2FApp.vue
Code of Conduct
- [X] I agree to follow this project's Code of Conduct