ngx-intl-tel-input icon indicating copy to clipboard operation
ngx-intl-tel-input copied to clipboard

Uruguay flag on US +1 code

Open bernardodesousa opened this issue 2 years ago • 0 comments

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
});

bernardodesousa avatar Nov 30 '22 15:11 bernardodesousa