You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had been working with the Geocoder outside of the map.
When I set the input value, the Geocoder is loaded with it's suggestions and they do not collapse until i clic on the geocoder and then clic out.
I would like to know how to load the geocoder without the suggestions until the user select the geocoder.
I may have done something wrong. Here is how I have done it: https://codesandbox.io/s/pedantic-gauss-hhdrl?file=/src/App.js
The text was updated successfully, but these errors were encountered:
It didn't use to do that. Unfortunately, mapbox-gl-geocoder changed the behavior mapbox/mapbox-gl-geocoder#401. You might be able use some CSS wizardry to hack around this. Like maybe hide the suggestions unless the input is focused or something.
It might be worth it to roll your own geocoder component to fully customize how it works. You could fetch the data using the Mapbox API and then hook that up to your custom component.
You could also try rolling back to v2.0.13 which I think was using a version of mapbox-gl-geocoder that didn't display the suggestions when setting the input value.
I had been working with the Geocoder outside of the map.
When I set the input value, the Geocoder is loaded with it's suggestions and they do not collapse until i clic on the geocoder and then clic out.
I would like to know how to load the geocoder without the suggestions until the user select the geocoder.
I may have done something wrong. Here is how I have done it: https://codesandbox.io/s/pedantic-gauss-hhdrl?file=/src/App.js
The text was updated successfully, but these errors were encountered: