Stop mouse event to prevent accidental trigger of nested tp-sortable elements.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user