fix missing tagName for select checks

This commit is contained in:
Adam Bradley
2014-05-14 09:57:30 -05:00
parent 0ed975124d
commit 4f1145ca22

View File

@@ -325,7 +325,7 @@ function tapMouseUp(e) {
return false;
}
if( tapIgnoreEvent(e) || (/select|option/i).test(e.target) ) return;
if( tapIgnoreEvent(e) || (/select|option/i).test(e.target.tagName) ) return;
if( !tapHasPointerMoved(e) ) {
tapClick(e);
@@ -378,7 +378,7 @@ function tapTouchEnd(e) {
if( !tapHasPointerMoved(e) ) {
tapClick(e);
if( (/select|option/i).test(e.target) ) {
if( (/select|option/i).test(e.target.tagName) ) {
e.preventDefault();
}
}