Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+1 country code not showing any country flag #44

Open
hameeedurrehman opened this issue Aug 23, 2024 · 3 comments
Open

+1 country code not showing any country flag #44

hameeedurrehman opened this issue Aug 23, 2024 · 3 comments

Comments

@hameeedurrehman
Copy link

While writing +1 country code in Input field and search, it does not show any country flag
image

System Info
SYSTEM: Ubuntu
BROWSER: Chrome

@alexiz10
Copy link

alexiz10 commented Sep 4, 2024

It seems this is happening because of multiple countries using the same country code. It looks like countries like Anguilla (+1 264) and Antigua and Barbuda (+1 268) are only grabbing the first number, therefore being shown as +1. I'm not sure if this is a problem with this package, since this package is using react-phone-number-input under the hood, which then uses libphonenumber-js to get the country codes. The issue might be with libphonenumber-js.

@cove-cyril
Copy link

Bruh there's no problem with libphonenumber-js lmao

@cove-cyril
Copy link

I'm just using this as a workaround

<PhoneInput
    defaultCountry="US"
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants