diff --git a/src/utils.js b/src/utils.js index 4230fb12..f9e1b85b 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,3 @@ - var rAF = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || @@ -204,7 +203,7 @@ var utils = (function () { var target = e.target, ev; - if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA') { + if (!(/SELECT|INPUT|TEXTAREA/i.test(target.tagName.toUpperCase()))) { ev = document.createEvent('MouseEvents'); ev.initMouseEvent('click', true, true, e.view, 1, target.screenX, target.screenY, target.clientX, target.clientY,