mapbox / mapbox/mapbox-gl-geocoder

add .focusInput() api method

Open
#239 0 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.