Skip to content

Commit 61a06e7

Browse files
committed
Fix clicking select tag
1 parent ec7b5e9 commit 61a06e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Sortable.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,11 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
484484
return;
485485
}
486486

487+
// Safari ignores further event handling after mousedown
488+
if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
489+
return;
490+
}
491+
487492
target = closest(target, options.draggable, el, false);
488493

489494

0 commit comments

Comments
 (0)