Skip to content

Commit 76154ac

Browse files
committed
unregister event
1 parent 1b18817 commit 76154ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/y-monaco.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class MonacoBinding {
202202
destroy () {
203203
this._monacoChangeHandler.dispose()
204204
this.ytext.unobserve(this._ytextObserver)
205-
this.doc.off('beforeTransaction', this._beforeTransaction)
205+
this.doc.off('beforeAllTransactions', this._beforeTransaction)
206206
if (this.awareness !== null) {
207207
this.awareness.off('change', this._rerenderDecorations)
208208
}

0 commit comments

Comments
 (0)