Stop mouse event to prevent accidental trigger of nested tp-sortable elements.

This commit is contained in:
2026-06-23 06:57:39 +02:00
parent 0c618f2024
commit 064f5ebcd3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -95,6 +95,7 @@ class TpSortable extends EventHelpers(LitElement) {
_onMouseDown(e) {
this._longPressTarget = closest(e.composedPath()[0], this.handle || this.selector, true);
if (this._longPressTarget) {
e.stopPropagation();
this._startX = e.detail.x;
this._startY = e.detail.y;
const path = e.composedPath();