-
Notifications
You must be signed in to change notification settings - Fork 4
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
💡 Feature Request - Option for simplified countries list #53
Comments
Hi @arzatskis, thanks for sharing your thoughts. The thing is that the
This allows us to identify the country and so perform corresponding restrictions and validations based on that. |
Yeah, I understand that, but it may still return first match from list and refine matched country as user types in more digits? |
Sorry @arzatskis, but I don't see any issues with this. With the current implementation, it reidentifies the country's metadata, while with the suggested feature, it will always be the first matched country. For example, if the phone number starts with |
Implementation PR
No response
Reference Issues
No response
Summary
At the moment
countriesList
includes multiple options with different area codes for same country (e.g. Canada has options with patterns+1 (204) ...
,+1 (226) ...
,+1 (236) ...
etc.) I believe it would be great to have an option for "basic" countries list, where there's one option per country (for Canada this would be single option with only country code in pattern+1 (...) ... ....
)I'd say for end users such list would be less overwhelming and easier to browse / find option with typing in focused
<select />
Basic Example
At the moment you can do filtering / mapping on your own, something like, but it's quite cumbersome
Drawbacks
The only drawback I can think of is overhead for maintainers generating / maintaining two separate
.json
listsUnresolved questions
No response
The text was updated successfully, but these errors were encountered: