mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +00:00
Merge pull request #15 from Human-Connection/changes-for-editor
Improve input.js for editor use
This commit is contained in:
commit
47291993d2
@ -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 {
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user