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

Cursor position in ui-number-mask is incorrect #233

Open jihin opened 6 years ago

jihin commented 6 years ago

I am added ui-number-mask to my textbox. When I entering the number validation is working correctly the problem is the position of the cursor is last. When I need to enter 10, It needs 1 0 0 0. total 4 numbers. How to fix the issue

<input type="text" class="form-control input-sm"ng-model="ingredient.quantity" ui-number-mask ui-hide-group-sep placeholder="Qty">