surajmathe / intl-input-phone

Angular plugin for international phone number. See the working demo here :-
https://intl-input-phone-demo.stackblitz.io/
7 stars 0 forks source link

changing the flag #4

Closed ronyeh3 closed 3 years ago

ronyeh3 commented 4 years ago

when changing the flag, after setting the number, the new area code value doesn't updates to the new one.

surajmathe commented 4 years ago

Hi @ronyeh3 , Can you provide brief information about the scenario? Because when you change any flag from the dropdown then according to that country masking will also be changed and after completing the input field you will get the updated value.

ronyeh3 commented 4 years ago

a stupid user may complete the input field and only then change the flag, thus the value will be a wrong one. i made a workaround to overcome such issue. im retrieving the input element from the dom and concatenating the country code by myself. im just letting you know about this. many thanks for your work