Versions
Describe the bug
Checkbox validation fails. Once you click outside of a checkbox, the checkbox gets unchecked.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Check box stay checked, submit button will work as expected showing an alert of checked checkboxes.
Demo link
Checkbox example on https://vee-validate.logaretm.com/v4/examples/checkboxes-and-radio
Desktop (please complete the following information):
Additional context
we face an identical issue with latest beta2 of v4 and not being able to create a "accept terms" validation checkbox in our code.
thx, marius.
Thank you for reporting this, it was caused by having listeners on both onBlur and onChange which each toggled the input value.
thanks for fixing this... I can cofirm that it works again in [email protected] ..
Most helpful comment
Thank you for reporting this, it was caused by having listeners on both
onBlurandonChangewhich each toggled the input value.