JedWatson / JedWatson/react-select

Results not showing in search dropdown for different language cities like Köln, München, and others

Open
#5,965 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

issue/bug-unconfirmed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

HI, @JedWatson, @thezanke @spahow are you?
I'm facing an issue with city search via
const apiUrl = https://nominatim.openstreetmap.org/search?q=${encodeURIComponent( searchTerm )}&format=jsonv2&addressdetails=1;

I'm getting search data when I search via different language cities like Köln, München, and Parigi. It's also added to the options. But don't know why it's not showing in react-select. I think the react-select input box text does not match the city result. Because when I get the search results it's in English like if I search with Köln then the search result is in Cologne. Can you please let me know how can I ignore the input and search result check option in react-select so the result shows in the search dropdown? English city working fine.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the react-select city search with Köln, München, and Parigi using the shown Nominatim URL, then inspect how the returned options are passed to the dropdown and filtered. Done means non-English city searches display their matching results in the dropdown, while the existing English-city behavior remains working.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.