Skip to content

Commit 4f1145c

Browse files
committed
fix missing tagName for select checks
1 parent 0ed9751 commit 4f1145c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/utils/tap.js

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

328-
if( tapIgnoreEvent(e) || (/select|option/i).test(e.target) ) return;
328+
if( tapIgnoreEvent(e) || (/select|option/i).test(e.target.tagName) ) 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( (/select|option/i).test(e.target) ) {
381+
if( (/select|option/i).test(e.target.tagName) ) {
382382
e.preventDefault();
383383
}
384384
}

0 commit comments

Comments
 (0)