KevinSheedy / jquery.alphanum

Alphanumeric Plugin for jQuery
Other
141 stars 65 forks source link

Initializing .numeric() on input[type="number"] #65

Open retzion opened 8 years ago

retzion commented 8 years ago

We use input[type="number"] inputs for amounts so that on mobile devices the user's keypad is only numbers.

I've realized, however, that the number fields fail to initiate under .numeric(). It seems the alpahnum framework won't work on type=number so we're using type=text and losing the preferred UX.

retzion commented 8 years ago

Any plans to address this?

Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('number') does not support selection.

Abdelhady commented 7 years ago

I'm facing the same issue with type="email" with the same error.