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
This is expected, because clicking a checkbox emits both a change and input events. vee-validate validates on both either way to sync the value and the .valid flag regardless of user config. I did consider excluding the input event validation but user may have configured it to validate then, so we would be forced to listen regardless.
Text boxes does follow the same behavior if you type something then leave the input, that would emit input then change respectively.
What happened?
When you have a field of type checkbox the validation rule(s) get called twice instead of once (like with a text input)
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://vee-validate.logaretm.com/v4/
Code of Conduct
The text was updated successfully, but these errors were encountered: