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

Option to disable autochange country when typing #269

Open
Styort opened this issue Nov 14, 2024 · 4 comments
Open

Option to disable autochange country when typing #269

Styort opened this issue Nov 14, 2024 · 4 comments

Comments

@Styort
Copy link

Styort commented Nov 14, 2024

I have set up a list of supported countries in the CountrySelectorNavigator (by passing a List<IsoCode> to countries parameter of CountrySelectorNavigator constructor ) and want to be able to enter a phone number for supported countries only. But if I start entering the phone number prefix of another country that I do not have in the list, it automatically changes to it.
Here is a video with an example of reproducing the bug.

Is is possible to disable now?

@cedvdb
Copy link
Owner

cedvdb commented Nov 14, 2024

What would be the expected behavior ?

What would it display when you do +1 ?

@Styort
Copy link
Author

Styort commented Nov 15, 2024

What would be the expected behavior ?

What would it display when you do +1 ?

Just continue displaying +1, without switching countries.

@cedvdb
Copy link
Owner

cedvdb commented Nov 16, 2024

What do you think about this :

  • change the country
  • when the user uses a country that is not in the list of selected countries, show an error message ?

@Styort
Copy link
Author

Styort commented Nov 16, 2024

I would not like to give the opportunity to change the country if it is not on the list of available ones.

I would like to be able to strictly limit the input of unsupported numbers so that the user immediately understands that the application is not available in his country.

I thought that's what the list of countries in CountrySelectorNavigator was for...

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

2 participants