[V4] useFieldArray's update() method validates entire form, including untouched fields #3981
Closed
4 of 5 tasks
Labels
🐛 bug
Unintended behavior
What happened?
When calling the
update()
method provided byuseFieldArray
, form validation is triggered and displays errors for all fields, even those that haven't been touched.Reproduction steps
useForm
useField
. These fields should be required by yup validationuseFieldArray
update
method provided byuseFieldArray
and observe the other required fields fail validation, even though they haven't been touched yet.NOTE
This seems to be an issue starting since v4.7.1
Reproduction Link Below
Simply click the "Update Array Field" button to see validation triggered on untouched fields.
Reproduction Stackblitz
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://stackblitz.com/edit/vee-validate-v4-array-fields-1ljfl1?file=src%2FApp.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: