From a831f91314d27a592aff0047b9e2c0193cb14363 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 5 Feb 2019 17:12:49 +0100 Subject: [PATCH] fixed input field --- styleguide/src/system/components/data-input/shared/input.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styleguide/src/system/components/data-input/shared/input.js b/styleguide/src/system/components/data-input/shared/input.js index 5ccf32b5b..954f52051 100755 --- a/styleguide/src/system/components/data-input/shared/input.js +++ b/styleguide/src/system/components/data-input/shared/input.js @@ -117,12 +117,12 @@ export default { } }, created() { - if (this.$parentForm) { + if (this.$parentForm && this.model) { this.$parentForm.subscribe(this.handleFormUpdate) } }, beforeDestroy() { - if (this.$parentForm) { + if (this.$parentForm && this.model) { this.$parentForm.unsubscribe(this.handleFormUpdate) } }, @@ -132,7 +132,7 @@ export default { }, input(value) { this.innerValue = value - if (this.$parentForm) { + if (this.$parentForm && this.model) { this.$parentForm.update(this.model, value) } else { /**