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
Calling resetForm with force: true does still merge the initial values. In my opinion it should also force reset the initial values.
Currently this leads to a bug where when you reset the form based on a watcher and the new values have fewer entries the initial values still contain the properties only the previous values had.
Probably inside the resetForm function the force option would need to be passed to the setInitialValues function and then not merge the values if the option is true
Reproduction steps
Click "Add"
initialValues has "test" property
Click "Change entity"
initialValues still has "test" property despite not being present in "bar" entity and using resetForm with force option
What happened?
Calling
resetForm
withforce: true
does still merge the initial values. In my opinion it should also force reset the initial values.Currently this leads to a bug where when you reset the form based on a watcher and the new values have fewer entries the initial values still contain the properties only the previous values had.
Probably inside the
resetForm
function the force option would need to be passed to thesetInitialValues
function and then not merge the values if the option is trueReproduction 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://stackblitz.com/edit/vee-validate-v4-quasar-framework-zrojtm?file=src%2FApp.vue,src%2FEditDialog.vue,src%2FInputWithValidation.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: