ftlabs / fastclick

Polyfill to remove click delays on browsers with touch UIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastClick.focus has wrong while input's type eq 'number'

ajudes opened this issue · comments

fastclick.js:331 Uncaught DOMException: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.(…)

if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {....}
this's condition can't prevented input type = 'number'