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

Uruguay flag on US +1 code #479

Open
bernardodesousa opened this issue Nov 30, 2022 · 0 comments
Open

Uruguay flag on US +1 code #479

bernardodesousa opened this issue Nov 30, 2022 · 0 comments

Comments

@bernardodesousa
Copy link

This is two problems in one:

  1. a phone number from Canada is being classified as a US number.
  2. the Uruguay flag is displayed instead of the US flag.

image

intl-tel-input: 17.0.19
How it's being used:

phoneInput = intlTelInput(input, {
  initialCountry: "BR",
  utilsScript: intlTelInputUtils,
  geoIpLookup: (success, _failure) => {
    $.get("https://ipinfo.io", () => {}, "jsonp").always((resp) => {
      let countryCode = (resp && resp.country) ? resp.country : "BR";
      success(countryCode);
    });
  },
  enableAutoCountrySelect: true
});
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

1 participant