Skip to content

Commit 65749a4

Browse files
author
Adam Bradley
committed
fix(select): select option in desktop Firefox
Closes #1251
1 parent 6e725b1 commit 65749a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: js/utils/tap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function tapMouseUp(e) {
325325
return false;
326326
}
327327

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

330330
if( !tapHasPointerMoved(e) ) {
331331
tapClick(e);
@@ -378,7 +378,7 @@ function tapTouchEnd(e) {
378378
if( !tapHasPointerMoved(e) ) {
379379
tapClick(e);
380380

381-
if( e.target.tagName === 'SELECT' ) {
381+
if( (/select|option/i).test(e.target) ) {
382382
e.preventDefault();
383383
}
384384
}

0 commit comments

Comments
 (0)