Skip to content

Commit

Permalink
Merge pull request #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 901c5b2 + 61a06e7 commit edc9c31
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 edc9c31

Please sign in to comment.