mapbox / mapbox/mapbox-gl-geocoder
add .focusInput() api method
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 388
- Forks
- 181
- PR merge metrics
- No merged PRs in 30d
Description
it'd be convenient if the geocoder had a built-in method to bring focus to the geocoder input. This would be useful for a lot of thing, but especially for the case where an app attaches a hotkey to search the map and wants to bring focus to the geocoder when that happens.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the geocoder control's input element and its existing public API methods. Confirm how focus is currently handled, then define the behavior of a public focus method and verify that calling it focuses the geocoder input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100