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
When you remove an item from the field array, errors still exist in the errors object, they should be reindexed according to the current field's value. It`s a big problem because when you will remove and push again errors will be displayed on the new item.
When I will press Add button my new item with index 1 will have an error.
Reproduction steps
Create an FieldArray and add basic actions push, remove
Add displaying errors from the form
Start removing items from fields and check errors displaying
Looks like this happens when you use rules on individual fields and you remove fields from the middle of the list. This was caused by the field not unsettling the old errors path.
Should be up shortly in a new patch release. Thank you for reporting this.
What happened?
When you remove an item from the field array, errors still exist in the errors object, they should be reindexed according to the current field's value. It`s a big problem because when you will remove and push again errors will be displayed on the new item.
When I will press Add button my new item with index 1 will have an error.
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://codesandbox.io/s/vee-validate-v4-repeater-d9qft?file=/src/App.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: