From 392b089eb68fa2301b2e69cf38d1f331c9c846b5 Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 24 Jun 2024 09:22:21 +0800 Subject: [PATCH] * dnd: prevent to select text on moving targets. --- lib/dnd/src/vanilla/moveable.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dnd/src/vanilla/moveable.ts b/lib/dnd/src/vanilla/moveable.ts index 5413f22b2b..d7cea8cc44 100644 --- a/lib/dnd/src/vanilla/moveable.ts +++ b/lib/dnd/src/vanilla/moveable.ts @@ -111,6 +111,7 @@ export class Moveable extends Component { this.$element.addClass(hasMovingClass); } + event.preventDefault(); this._setState(event, moveElement); $(document).off('mousemove mouseup').on(`mousemove${this.namespace}`, this._handleMouseMove.bind(this)).on(`mouseup${this.namespace}`, this._handleMouseUp.bind(this)); };