Skip to content

Search term field doesn't capture focus after first search #2395

Open
@sjakobi

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:

  1. Go to https://umap.openstreetmap.de/de/map/test_77762
  2. Click on the search symbol in the sidebar on the left. You can now start typing directly to enter a search term.
  3. Close the search field.
  4. 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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions