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

Search Results Prioritization: Countries Starting with Search Value Should Be Shown First #705

Open
JagdishK99099 opened this issue Jan 6, 2025 · 1 comment

Comments

@JagdishK99099
Copy link

I'm using react-phone-input-2 and noticed an issue with the country search functionality. When I search for a country (e.g., typing "M"), the results do not prioritize countries that start with the search value. Instead, all countries containing the search value (anywhere in the name) are shown in no particular order.

Expected Behavior:

Countries whose names start with the search value (e.g., "M") should appear first in the search results.
Other countries containing the search value should follow.

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
@JagdishK99099 and others