[openstreetmap/openstreetmap-website] Add datalist to display multiple search results (PR #6765)
Pablo Brasero
notifications at github.com
Wed Feb 11 14:38:27 UTC 2026
pablobm left a comment (openstreetmap/openstreetmap-website#6765)
There's a very confusing behaviour in Firefox: the datalist items are filtered using the text input as an strict substring.
So for example, if I search for "london texas", several results arrive from Nominatim:
- In Firefox, no results are displayed. This is because none of the results has "london texas" as an exact substring.
- In Chrome I do see results. Looks like Chrome takes the strings "london" and "texas" separately, allowing any result that includes both strings in any way. So for example "London, Rusk County, Texas" appears.
This means that the form won't work on Firefox in these cases, at all. The current behaviour takes the user to the first result, but with this new behaviour no result is used and the user is not allowed to pick one. I don't think that we can detect this behaviour, short of detecting the browser which would be a bad idea.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6765#issuecomment-3884852030
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6765/c3884852030 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260211/aced6960/attachment-0001.htm>
More information about the rails-dev
mailing list