Don't save the editor text when it is loaded

This commit is contained in:
kolaente 2021-01-30 21:16:15 +01:00
parent c49345c31b
commit 46831e5132
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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)
}, },