How to detect click on mapbox-gl-geocoder results (suggestions)?

438 views Asked by At

When I type in and get a dropdown with suggestions (suggestions-wrapper) - is it possible to get the click event on an item in the dropdown list? Thanks.

1

There are 1 answers

0
Steve Bennett On

You can subscribe to the result event:

geocoder.on('result', result => console.log(result));