From 57609db3d165618b9eace13c85a0f8099b704001 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 1 Dec 2020 17:22:48 +0100 Subject: [PATCH] Don't tell parent about default values --- htdocs/src/components/hFields.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/htdocs/src/components/hFields.vue b/htdocs/src/components/hFields.vue index a2aeb4a..6eccb05 100644 --- a/htdocs/src/components/hFields.vue +++ b/htdocs/src/components/hFields.vue @@ -99,16 +99,11 @@ export default { methods: { fieldsUpdated () { - var changed = false for (const i in this.fields) { if (this.value[this.fields[i].id] === undefined && this.fields[i].default) { this.val[this.fields[i].id] = this.fields[i].default - changed = true } } - if (changed) { - this.$emit('input', this.val) - } }, saveChildrenValues () {