mapbox-gl-geocoder
mapbox-gl-geocoder copied to clipboard
autofocus option
in addition to #239 we should add an autofocus option to allow the input element to have the autofocus set or not.
This would make https://github.com/mapbox/mapbox-gl-js-docs/issues/387 supported without hacks.
Just stumbled upon this while working on a project that I'm in the process of upgrading react-map-gl to v7.
Once the geocoder is added as control it seems to be opened by default and focused. Have there been any updates that allow the default to be "closed" rather than open/expanded?
For some context I do have collapsed: true when creating the geocoder via new Geocoder()