ui-mask
ui-mask copied to clipboard
Bug on input phone with mask
Hi!
When i put cursor after the country code and type any number, my country code number insert before typed number.
Env: Ionic 1.3.1
<input type="tel" ng-model="data.phoneNumber" ui-mask="+7(999) 999-99-99" ui-mask-placeholder="" ui-mask-placeholder-char="_" ui-options="{clearOnBlur: false}">
Video attached. bug1.zip
If i put a cursor before country code, country code number insert after typed number.
On attached video (chrome developer tools) you can see that i put number 6 and country code 7 was inserted.
>bower info angular-ui-mask
bower angular-ui-mask#* cached https://github.com/angular-ui/ui-mask.git#1.8.7
{
author: 'AngularUI Team',
...
version: '1.8.7'
}
Does this PR fix this problem?
https://github.com/angular-ui/ui-mask/pull/200
No
This PR #201 should fix this