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

Canada and US number Confusion

Open supermarrk opened this issue 6 years ago • 6 comments

Hello,

I am using Angular 4 and I implemented this plugin in my project. My issue is when I am retrieving a Canadian mobile number the flag is set to US flag.

image

Thanks,

supermarrk avatar Mar 26 '18 07:03 supermarrk

any update on this issue??

ghost avatar Jul 10 '18 10:07 ghost

canada and us share the same country code

BrianCerasuolo avatar Jul 25 '18 14:07 BrianCerasuolo

@nikhiln Yes, these countries has the same country code. But that's wrong behavior, when I manually select "Canada" and then type phone number and flag are updated to US. The flag shouldn't be changed in this case. Only in case if I provide another country code. Please, fix this issue, because this is a critical bug. Thanks

andrey-o-sim avatar Jan 08 '19 10:01 andrey-o-sim

hi any updates on this?

quekqh avatar Jan 25 '19 09:01 quekqh

@nikhiln You can externally install 'libphonenumber-js' and you can parse your number, so there you will get your country initial that you can pass , Your canada and us issue can be resolved, i did same way

shubhujais1995 avatar Jul 17 '19 20:07 shubhujais1995

This might have been fixed by https://github.com/esoyke/ngx-international-phone-number2

jek-bao-choo avatar Nov 11 '19 03:11 jek-bao-choo