RobinHerbots/inputmask.phone

Autofill and phoneCodes

Opened this issue · 0 comments

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.