From 65749a40bb87609b94e6de54d5833d51818a3f87 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 13 May 2014 13:29:29 -0500 Subject: [PATCH] fix(select): select option in desktop Firefox Closes #1251 --- js/utils/tap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/utils/tap.js b/js/utils/tap.js index a1aa24c2b55..da844bb9278 100644 --- a/js/utils/tap.js +++ b/js/utils/tap.js @@ -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); @@ -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(); } }