vee-validate
vee-validate copied to clipboard
setFieldValue and setValue do not respect <Field> validateOn props
What happened?
Using the setFieldValue and setValue functions from the <Form> slot triggers validation even if the <Field> has validateOnX set to false. If this is desired behaviour is there any way to set a value of the field without validating?
Reproduction steps
- Go to https://stackblitz.com/edit/vue-a68e91mr?file=src%2FApp.vue
- Click set field value button
- Validation is triggered even when validateOnX is all set to false ...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
- [ ] Firefox
- [ ] Chrome
- [ ] Safari
- [ ] Microsoft Edge
Relevant log output
Demo link
https://stackblitz.com/edit/vue-a68e91mr?file=src%2FApp.vue
Code of Conduct
- [x] I agree to follow this project's Code of Conduct