diff --git a/src/y-codemirror.js b/src/y-codemirror.js index 6557b71..c0fe9e7 100644 --- a/src/y-codemirror.js +++ b/src/y-codemirror.js @@ -368,6 +368,7 @@ export class CodemirrorBinding { if (this.yUndoManager) { this.yUndoManager.off('stack-item-added', this._onStackItemAdded) this.yUndoManager.off('stack-item-popped', this._onStackItemPopped) + this.yUndoManager.trackedOrigins.delete(this) } this.type = null this.cm = null