Skip to content

Commit

Permalink
fix(select): select option in desktop Firefox
Browse files Browse the repository at this point in the history
Closes #1251
  • Loading branch information
Adam Bradley committed May 13, 2014
1 parent 6e725b1 commit 65749a4
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
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 65749a4

Please sign in to comment.