hodgepodgers / ng-intl-tel-input

AngularJS 1.4.x module implementing intl-tel-input (https://github.com/Bluefieldscom/intl-tel-input)
MIT License
110 stars 111 forks source link

Model value is not updated when changing country after inserting number #85

Open gasfab999 opened 7 years ago

gasfab999 commented 7 years ago

I noticed that with the current versions there are some problems when changing the country after inserting the number. In this case the model value is not updated.

To reproduce the bug:

  1. type in telephone number
  2. change country

I created a plunkr with the intl-tel-input version 9.0.0 and ng-intl-tel-input version 2.0.0 where you can reproduce the bug http://plnkr.co/edit/2zs6F5?p=preview

However if I use intl-tel-input version 7.0.2 and ng-intl-tel-input version 2.0.0 it was updating the value correctly http://plnkr.co/edit/Eh6Cip?p=preview

Therefore we have currently to use the older version. Would it be possible to fix this problem or does anybody know why this problem occurs?

Thx

armanforghani commented 7 years ago

I have the same problem.