mapbox-gl-geocoder icon indicating copy to clipboard operation
mapbox-gl-geocoder copied to clipboard

Suggestion list doesn't close when clicking on a marker

Open Lechevallier opened this issue 4 years ago • 1 comments

The suggestion list closes when clicking somewhere on the map, but not when clicking on a marker.

Steps to reproduce:

  • go to https://docs.mapbox.com/mapbox-gl-js/example/point-from-geocoder-result/
  • search for a place and pick one in the suggestion list so an orange marker gets display on the map
  • click the search bar to make the suggestion list appear again, then click the orange marker: suggestion list won't close
  • click somewhere else in the map: suggestion list closes

MapboxGeocoder

It's kind of annoying because in my case I reduce the geocoder on blur: image

Lechevallier avatar Oct 27 '21 17:10 Lechevallier

+1 on this any work around @Lechevallier ?

michaelVictoriaDev avatar Feb 13 '22 11:02 michaelVictoriaDev