Skip to content
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

[Zod] Unexpectedly trigger the refine or superRefine validation. #4844

Open
4 of 5 tasks
wangziling opened this issue Aug 23, 2024 · 2 comments
Open
4 of 5 tasks

[Zod] Unexpectedly trigger the refine or superRefine validation. #4844

wangziling opened this issue Aug 23, 2024 · 2 comments

Comments

@wangziling
Copy link

wangziling commented Aug 23, 2024

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

image

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?

  • Firefox
  • Chrome
  • Safari
  • 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

@brugomes
Copy link

brugomes commented Nov 1, 2024

I'm facing the same problem.

1 similar comment
@web-wade
Copy link

I'm facing the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants