Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofill and phoneCodes #13

Open
avradul opened this issue Feb 25, 2021 · 0 comments
Open

Autofill and phoneCodes #13

avradul opened this issue Feb 25, 2021 · 0 comments

Comments

@avradul
Copy link

avradul commented Feb 25, 2021

When using autofill, the very first mask from the sorted list of phoneCodes is substituted +1(242)###-####

https://jsfiddle.net/aradul/eu3x2g18/

Steps to play back:

  1. Enter your phone number+7(916)000 00 00
  2. Submit a form to save the value
  3. Refresh the page
  4. Put the focus in the field, and bring up the autofill window
    изображение
  5. Select a previously saved value

The result will be as follows
+1(242)___-____7____

Even if you force countrycode: '7', the very first mask from the sorted list is still substituted, without taking into account the countrycode value.

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

No branches or pull requests

1 participant