Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils/tap.js
Original file line number Diff line number Diff line change
@@ -325,7 +325,7 @@ function tapMouseUp(e) {
return false;
}

if( tapIgnoreEvent(e) || e.target.tagName === 'SELECT' ) return false;
if( tapIgnoreEvent(e) || (/select|option/i).test(e.target) ) return;

if( !tapHasPointerMoved(e) ) {
tapClick(e);
@@ -378,7 +378,7 @@ function tapTouchEnd(e) {
if( !tapHasPointerMoved(e) ) {
tapClick(e);

if( e.target.tagName === 'SELECT' ) {
if( (/select|option/i).test(e.target) ) {
e.preventDefault();
}
}

0 comments on commit 65749a4

Please sign in to comment.