jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers
https://intl-tel-input.com
MIT License
7.38k stars 1.93k forks source link

Selecting any country with Country code +1 and adding number, it resets the country to US. #1626

Closed Usman-Ejaz closed 1 month ago

Usman-Ejaz commented 1 month ago

Steps to reproduce

  1. Select country 'Anguilla'
  2. Enter number like 12345

Expected behaviour

Selecting country with +1 countryCode should be selected when entering any number.

Actual behaviour

Selecting country with +1 countryCode and entering any number is changing the selected country to US and changes the flag.

jackocnr commented 1 month ago

Please search the existing issues before creating a new one, as this question has been answered many times before.

Anguilla only has the dial code 264, so if you type a number starting with that, it will stay selected.