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 257 forks source link

ui-mask="1.1.9.999" error #247

Open ivaldo opened 5 years ago

ivaldo commented 5 years ago

When trying to set the start "1.2.3.4.5", using the mask "1.2.3.4.5.9.999", for example, the input does not accept the entered value, automatically prepending with a random digit.

package.json -> angular-ui-mask": "^1.8.7" sample code: <input type="text" ng-model="field" ui-mask="1.1.9.999">