fixed input field

This commit is contained in:
Grzegorz Leoniec 2019-02-05 17:12:49 +01:00
parent bfb8afc662
commit a831f91314
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

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