viclafouch / mui-tel-input

📌 A phone number input designed for MUI (Material ui) V6 built with libphonenumber-js
https://viclafouch.github.io/mui-tel-input
MIT License
158 stars 65 forks source link

Selecting UK from dropdown causes unexpected behaviour #127

Closed Bilal3241 closed 6 months ago

Bilal3241 commented 6 months ago

When a user selects UK from countries dropdown and tries to add a number, the country changes to US on its own

steps to reproduce:

  1. select UK from countries dropdown
  2. start adding a phone number

expected Behaviour: A valid phone number should be added successfully.

Demo: https://github.com/viclafouch/mui-tel-input/assets/47459320/916b27dc-90d2-4346-b711-81f9de3a215f

viclafouch commented 6 months ago

Hello @Bilal3241 !

Please provide a codesandbox for repro. On my side, after testing, I don't have this behavior :/