We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e725b1 commit 65749a4Copy full SHA for 65749a4
js/utils/tap.js
@@ -325,7 +325,7 @@ function tapMouseUp(e) {
325
return false;
326
}
327
328
- if( tapIgnoreEvent(e) || e.target.tagName === 'SELECT' ) return false;
+ if( tapIgnoreEvent(e) || (/select|option/i).test(e.target) ) return;
329
330
if( !tapHasPointerMoved(e) ) {
331
tapClick(e);
@@ -378,7 +378,7 @@ function tapTouchEnd(e) {
378
379
380
381
- if( e.target.tagName === 'SELECT' ) {
+ if( (/select|option/i).test(e.target) ) {
382
e.preventDefault();
383
384
0 commit comments