mapbox-gl-geocoder
mapbox-gl-geocoder copied to clipboard
Suggestion list doesn't close when clicking on a marker
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

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

+1 on this any work around @Lechevallier ?