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
VeeValidate crash when I reset the object linked to the form fields via v-model
Reproduction steps
1.Create a form with one field or more and link a field to an object props : v-model="formObject.email"
2.Write somthing in the field
3.Reset the form object like that : formObject = {}
Thanks for reporting this, this was indeed a bug and should be resolved in the next patch release.
A small tip: Doing resets like that is not recommended because you are setting all values to undefined which can be dangerous if you have nested paths.
What happened?
VeeValidate crash when I reset the object linked to the form fields via v-model
Reproduction steps
1.Create a form with one field or more and link a field to an object props : v-model="formObject.email"
2.Write somthing in the field
3.Reset the form object like that : formObject = {}
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
https://codesandbox.io/embed/quiet-river-vytn8?fontsize=14&hidenavigation=1&theme=dark
Code of Conduct
The text was updated successfully, but these errors were encountered: