international-phone-number icon indicating copy to clipboard operation
international-phone-number copied to clipboard

0.0.16 : Binding initialization fails, field remains empty

Open amatissart opened this issue 9 years ago • 1 comments

Since version 0.0.16, the binding seems not to be initialized properly when a number is first set via ngModel. I can easily reproduce the problem:

0.0.15 : http://plnkr.co/edit/0LvSD4GEgmnlnlUk4RZY?p=preview 0.0.16 : http://plnkr.co/edit/DOzjJXGAbdlQVSHa2ij6?p=preview

Am I doing something wrong here ?

amatissart avatar Jan 06 '16 20:01 amatissart

I think there is no assignation of the number.

I added this line:

            element.intlTelInput("setNumber", newValue);

on line 72, and is working now.

Hope this helps.

robertomatute avatar Jul 26 '17 19:07 robertomatute