vee-validate icon indicating copy to clipboard operation
vee-validate copied to clipboard

setFieldValue and setValue do not respect <Field> validateOn props

Open DarrenXu94 opened this issue 4 months ago • 0 comments

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

  1. Go to https://stackblitz.com/edit/vue-a68e91mr?file=src%2FApp.vue
  2. Click set field value button
  3. 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

DarrenXu94 avatar Jun 06 '25 04:06 DarrenXu94