Problem when updating parent data
codanux opened this issue · 1 comments
codanux commented
I encountered with an issue while updating parent data here:
Here is a quick fix I applied
watch: {
formValues: {
handler: function handler(formValues) {
this.updating = true;
this.$emit('update:model', formValues); // model props update
},
deep: true
},
}
I can send a PR if needed.
Regards
felixpy commented
Sorry for late response, maybe using v-model can solve this problem?
Refer to this feature of Vue.js:
https://vuejs.org/v2/guide/components.html#Using-v-model-on-Components