mirror of https://github.com/fantasticit/think.git
Merge pull request #146 from fantasticit/fix/drag
This commit is contained in:
commit
fa41a96975
|
@ -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();
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue