reactjs / reactjs/react.dev

[Beta][Bug] Command+Click Search Results Opens New Tab

Open
#5,321 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

When I command+click a search result, the result opens in a new tab. However, the search results "blur" / disappear (and search input resets).

I think that instead, the search results should continue being visible. My use case for command+clicking a result is to open multiple results in separate tabs so I can look at all of them.

CleanShot 2022-12-05 at 16 33 30

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 reproducing the command-click behavior on a search result in the React documentation website, then trace the search-result click handling and state reset. Done means opening a result in a new tab leaves the existing results visible and preserves the search input for opening more results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.