ui-mask icon indicating copy to clipboard operation
ui-mask copied to clipboard

Bug on input phone with mask

Open ivanovevgeny opened this issue 7 years ago • 4 comments

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

ivanovevgeny avatar Sep 22 '16 06:09 ivanovevgeny

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.

bug.zip

>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'
}

ivanovevgeny avatar Sep 22 '16 06:09 ivanovevgeny

Does this PR fix this problem?

https://github.com/angular-ui/ui-mask/pull/200

travist avatar Dec 11 '16 19:12 travist

No

gazaret avatar Dec 15 '16 07:12 gazaret

This PR #201 should fix this

gazaret avatar Dec 16 '16 13:12 gazaret