mapbox / mapbox/mapbox-gl-geocoder

Show clear icon if no results

Open
#268 0 comments 1 reaction 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

Right now, if there are no results, the clear icon disappears:

![Screen Shot 2019-05-01 at 10 53 24 AM](https://user-images.githubusercontent.com/108094/57032576-914bb080-6bff-11e9-80e1-78575f51b9d6.png)

Which seems weird – this is maybe the case where I'm _most likely_ to want to use a clear icon.

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

No files or tests are identified. Start by reproducing a search with no results and tracing the geocoder control's clear-icon rendering; then add coverage for that state. Done means the clear icon remains visible when results are empty and still clears the current search.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.