Replies: 1 comment 1 reply
-
Sorry for taking so long at this, I dropped this completely. The issue will be resolved in the next update. Check #4440 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a view that dynamically renders entities based on a provided schema (more or less to have basic CRUD for entities of a ERM model). So you could navigate up/down etc. based on the db relations.
There we also have a AddEntity form that is reused for all entities which all have various fields. The form is reset using resetForm if the entity changes and the fields for that entity are initially set to undefined by passing the initial object as values to resetForm.
Up until v4.8.6 this worked perfectly fine, but since then resetForm does not seem to replace all values with the values provided to resetForm and rather merges those values. This of course breaks the functionality since there are still fields in values that don't even belong to that entity.
Now to my question: Is there any way to kind of force reset the form and not merge any fields?
I created a simple demo that illustrates the problem well:
https://stackblitz.com/edit/vee-validate-v4-quasar-framework-y3hxsk?file=src%2FApp.vue,src%2FEditDialog.vue,package.json
Steps to reproduce:
Beta Was this translation helpful? Give feedback.
All reactions