Schema blocked to submit form without checked #3643
-
What happened?Hello, Reproduction steps
VersionVue.js 3.x and vee-validate 4.x What browsers are you seeing the problem on?
Relevant log outputNo response Demo linkhttps://codesandbox.io/s/vue-vee-validate-g3cnn Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I converted this issue to a discussion since it is better suited. This behavior is intended, your schema needs to match whatever you have. So if You can create a computed schema and include the In the future you can always check the Here is the example: https://codesandbox.io/s/vue-vee-validate-forked-mjurj?file=/src/components/HelloWorld.vue |
Beta Was this translation helpful? Give feedback.
I converted this issue to a discussion since it is better suited. This behavior is intended, your schema needs to match whatever you have. So if
card
is required and is not shown, it will still block the submission because it doesn't exist.You can create a computed schema and include the
card
validation if thecheck
variable is set.In the future you can always check the
errors
to make sure you don't have dangling rules or you can also use the Vue devtools with vee-validate.Here is the example:
https://codesandbox.io/s/vue-vee-validate-forked-mjurj?file=/src/components/HelloWorld.vue