openfext/vue-form-builder

Problem when updating parent data

codanux opened this issue · 1 comments

I encountered with an issue while updating parent data here:

https://github.com/codetrial/element-form-builder/blob/22916aa8d4074998c21533b9c9b79a8305512e7d/src/formbuilder.js#L41

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