Skip to content

Commit

Permalink
fix: 清除拖拽事件 (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanchun authored Mar 3, 2025
1 parent 03315ed commit 814c13e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/draggable/directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export default {
el.removeEventListener('mouseup', drag.onDragend);
el.removeEventListener('dragend', drag.onDragend);
el.removeEventListener('transitionend', drag.onAnimationEnd);
el.removeEventListener('mousemove', drag.onMousemove);
dragInstanceMap.delete(el);
}
},
} as FObjectDirective;

0 comments on commit 814c13e

Please sign in to comment.