Skip to content

With showResultsWhileTyping: true, selecting a dropdown result via mouse click behaves differently than selecting it via ENTER #287

@juliusv

Description

@juliusv

When setting showResultsWhileTyping: true, the geocoder behaves differently depending on whether I select a dropdown search result via a mouse click (correct behavior) vs. navigating down to a result with the arrow keys and then pressing ENTER (incorrect behavior).

  • Mouse click: The map selects the clicked-on result, shows a marker for it (and optionally flies to it)
  • ENTER: The map selects multiple of the currently shown dropdown results and shows markers for each of them.

In the ENTER case, it still also fires a result event with just the one selected result. Just that it also does the extra unintended behavior.

It seems like I can work around this behavior difference by setting showResultMarkers: false, in which case it just shows a marker for the single selected result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions