Hello,

My problem is that I need to detect when the phone number changes and 
perform an action:
<input type="tel" name="phone" onkeyup="performPhoneChangeAction(this);">
Whan typing a new number no problem the change is detected and 
"performPhoneChangeAction" is called. But if I change the phone number 
by selecting a new flag the change is not detected and the 
"performPhoneChangeAction"method is not called. I added the keyup 
statement to propagate the change event.


Best Regards
David Coste
Le 16/12/2013 04:42, jackocnr a écrit :
>
> In src/js/intlTelInput.js:
>
> > @@ -328,6 +336,8 @@
> >        this.telInput.val(newNumber);
> >        // focus the input
> >        this.telInput.focus();
> > +      // triggers the keyup event
> > +      this.telInput.keyup();
>
> but they keyup event handler just calls _selectFlag
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Bluefieldscom/intl-tel-input/pull/15/files#r8358446>.
>