Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Bug on input phone with mask #188

Open
ivanovevgeny opened this issue Sep 22, 2016 · 4 comments · May be fixed by #201
Open

Bug on input phone with mask #188

ivanovevgeny opened this issue Sep 22, 2016 · 4 comments · May be fixed by #201

Comments

@ivanovevgeny
Copy link

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
Copy link
Author

ivanovevgeny commented Sep 22, 2016

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

@travist
Copy link

travist commented Dec 11, 2016

Does this PR fix this problem?

#200

@gazaret
Copy link

gazaret commented Dec 15, 2016

No

gazaret added a commit to gazaret/ui-mask that referenced this issue Dec 16, 2016
add timeout for fix caret pasition if click placeholder part before mask
@gazaret gazaret linked a pull request Dec 16, 2016 that will close this issue
@gazaret
Copy link

gazaret commented Dec 16, 2016

This PR #201 should fix this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants