mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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