mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-16 18:01:28 +00:00
Improve imput.js for editor use
This commit is contained in:
parent
01d0d4819f
commit
58f40fbed8
@ -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