diff --git a/packages/client/src/tiptap/core/extensions/dragable.ts b/packages/client/src/tiptap/core/extensions/dragable.ts index d6a8318..c4d352d 100644 --- a/packages/client/src/tiptap/core/extensions/dragable.ts +++ b/packages/client/src/tiptap/core/extensions/dragable.ts @@ -108,6 +108,9 @@ export const Dragable = Extension.create({ destroy: () => { if (!dragHandleDOM) return; + dragHandleDOM.removeEventListener('mousedown', handleMouseDown); + dragHandleDOM.removeEventListener('mouseup', handleMouseUp); + dragHandleDOM.removeEventListener('dragstart', handleDragStart); dragHandleDOM.remove(); }, };