angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

Input type "number" does not work #221

Open arikanmstf opened 7 years ago

arikanmstf commented 7 years ago

<input ui-mask="99.99" ng-model="someController.modelName" pattern="[0-9]*" class="some-class" type="number">

Hello, i want work this mark, so in Iphone devices there will be numeric keyboard. but error :

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

please do not tell me to use input type text, i have to use number

JosephMart commented 7 years ago

I have experienced the same issue. Only works when set to input type text...

paredesivan commented 6 years ago

@JosephMart @arikanmstf try with type="tel"