do not emit update event in doc is unchanged

This commit is contained in:
Philipp Kühn
2018-09-03 23:27:45 +02:00
parent 805fd02d92
commit 09870e1f45

View File

@@ -204,6 +204,10 @@ export default {
}, },
dispatchTransaction(transaction) { dispatchTransaction(transaction) {
if (!transaction.docChanged) {
return
}
this.state = this.state.apply(transaction) this.state = this.state.apply(transaction)
this.view.updateState(this.state) this.view.updateState(this.state)
this.$emit('update', { this.$emit('update', {