You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a form with 2 values, either both are filled out or none. When the user fills out one, it should show an error for the other if it hasn't been filled out.
I'm trying to implement this functionality with zod's .or() function, see here for example:
What happened?
I'm trying to build a form with 2 values, either both are filled out or none. When the user fills out one, it should show an error for the other if it hasn't been filled out.
I'm trying to implement this functionality with zod's .or() function, see here for example:
https://stackoverflow.com/questions/74122007/require-none-or-both-fields-with-zod
Is there something I'm missing here? Because using the zod union schema with .safeParse() seems to give me the expected result.
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
https://stackblitz.com/edit/vee-validate-v4-dynamic-validation-triggers-6yevxj?file=src%2FApp.vue,package.json
Code of Conduct
The text was updated successfully, but these errors were encountered: