vuejs / vuejs/docs

[Bug] `/` can't focus the search bar when the page finished loading

Open
#2,240 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
3.2k
Forks
5k
Avg merge
14d 17h
Merged PRs (30d)
1

Description

My cmd+k is already in use, so I use / to focus the search bar. However, / doesn't work when the page has just finished loading, it works only if I have opened the search widget before.

Contributor guide

No contributing guide indexed for this repository

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 loading the documentation page and pressing / before opening the search widget. Inspect the search widget's focus behavior and make / focus the search bar immediately after page load; verify that it also continues to work after the widget has been opened.

Written by the indexing model from the issue text.

Assessment

Domain
documentation, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.