Search term field doesn't capture focus after first search #2395
Open
Description
Describe the bug
In a custom map, when I use the search button in the sidebar, the search term field "captures the focus"(?) so I can start typing the search term directly. After closing the search field, this "focus capture" doesn't work again, so I have to click the search term field before I can start typing.
To Reproduce
Steps to reproduce the behavior:
- Go to https://umap.openstreetmap.de/de/map/test_77762
- Click on the search symbol in the sidebar on the left. You can now start typing directly to enter a search term.
- Close the search field.
- Click on the search symbol in the sidebar again.
To enter the search term, you now have to click on the search term field before being able to enter a search term. Instead you get a weird slow animation of the search field sliding out from the left.
Expected behavior
The "focus capture" should work reliably and quickly on each search.
Desktop (please complete the following information):
- OS: Ubuntu 22.04
Chromium 131.0.6778.85 snap
,Mozilla Firefox 133.0.3