Skip to content

setFieldValue and setValue do not respect <Field> validateOn props #5050

@DarrenXu94

Description

@DarrenXu94

What happened?

Using the setFieldValue and setValue functions from the

slot triggers validation even if the 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions