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

autofocus option

Open andrewharvey opened this issue 5 years ago • 1 comments

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.

andrewharvey avatar Aug 21 '20 03:08 andrewharvey

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()

just-Bri avatar May 24 '22 18:05 just-Bri