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 { /**