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 is wrong when Voice over is on #241

Open ushaAmbig opened 6 years ago

ushaAmbig commented 6 years ago

Hi,

I'm facing this problem of cursor pointed at the end of the textbox even if no characters are typed in. This problem is observed only in ios devices, when the voice over is on.

img_0430

I have the following code for the phone number mask:

<input type="tel" name="phone" ng-model="phone" ng-required="customValidator.mobile.required"
placeholder="(___) ___-____"
char-limit="{{customValidator.mobile.maxLength}}"
ng-minlength="{{customValidator.mobile.minLength}}"
ui-mask="(999) 999-?9?9?9?9">

Thanks in Advance.