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 have this form with a consent checkbox at the bottom of the form. I used this example pulled from the docs to create the checkmark. The problem is that meta.valid (and probably other meta properties) are working very inconsistent... I also provided a demo link below, as well as some reproduction steps (me and my coworker both tested these reproduction steps so I hope they also work for you.)
Reproduction steps
Check the checkbox
Uncheck the checkbox
Click somewhere in the page (e.g. the meta object)
Click a few times on the checkbox and see that the meta.valid prop is not updated correctly (unless you click next to it)
...
The text was updated successfully, but these errors were encountered:
Antimated
changed the title
Inconsistent behaviour with single checkbox meta validation
Inconsistent behaviour with checkbox meta validation
Sep 15, 2022
Antimated
changed the title
Inconsistent behaviour with checkbox meta validation
[V4] Inconsistent behaviour with checkbox meta validation
Sep 15, 2022
Antimated
changed the title
[V4] Inconsistent behaviour with checkbox meta validation
[V4] Inconsistent behaviour with checkbox meta.valid property
Sep 15, 2022
Thanks for reporting this. The bug was caused by the input event triggering before the change event. Since both signal a value change, vee-validate tries to avoid toggling the value twice by skipping it for the change event.
This means the validation could also be incorrectly skipped. I am working on a fix at the moment.
What happened?
Hi,
I have this form with a consent checkbox at the bottom of the form. I used this example pulled from the docs to create the checkmark. The problem is that
meta.valid
(and probably other meta properties) are working very inconsistent... I also provided a demo link below, as well as some reproduction steps (me and my coworker both tested these reproduction steps so I hope they also work for you.)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-checkboxes-snurs1?file=src%2FApp.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: