Don't save the editor text when it is loaded
This commit is contained in:
parent
c49345c31b
commit
46831e5132
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,11 @@ export default {
|
||||||
// it a higher timeout to make the timouts cancel each other in that case so
|
// it a higher timeout to make the timouts cancel each other in that case so
|
||||||
// that in the end, only one change event is triggered to the outside per change.
|
// that in the end, only one change event is triggered to the outside per change.
|
||||||
handleInput(val) {
|
handleInput(val) {
|
||||||
|
// Don't bubble if the text is up to date
|
||||||
|
if(val === this.text) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.text = val
|
this.text = val
|
||||||
this.bubble(1000)
|
this.bubble(1000)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue