Redocly / Redocly/redoc

Search results doesn't clear properly

Open
#1,306 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

MicrosoftTeams-image (3)

search for any text whichever in your API content. it gives you set of search results.
Next do Ctrl + A in search placeholder with text and clear the whole text using backspace key.
We have noticed that after clearing search placeholder value, it still shows search results on left panel (menubar) and highlights the occurrences of the text.
Issue is not often but if you try multiple times you could notice.

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

Reproduce the issue by searching API content, then selecting all text in the search placeholder and clearing it with Backspace. Inspect the search UI behavior when the value becomes empty. Done means the left-panel search results and highlighted occurrences disappear reliably after clearing the placeholder.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.