do not emit update event in doc is unchanged
This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user