Skip to content

Commit

Permalink
Merge pull request SortableJS#1681 from cawabunga/master
Browse files Browse the repository at this point in the history
Fix clicking select tag
  • Loading branch information
owen-m1 authored Feb 17, 2020
2 parents 69a8000 + 00a9d76 commit 8ba326d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
return;
}

// Safari ignores further event handling after mousedown
if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
return;
}

target = closest(target, options.draggable, el, false);


Expand Down

0 comments on commit 8ba326d

Please sign in to comment.