-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
triggering search via cmd+k captures all future keystrokes #11572
Copy link
Copy link
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: searchRelated to the search feature, usually AlgoliaRelated to the search feature, usually AlgoliaexternalThis issue is caused by an external dependency and not Docusaurus.This issue is caused by an external dependency and not Docusaurus.
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: searchRelated to the search feature, usually AlgoliaRelated to the search feature, usually AlgoliaexternalThis issue is caused by an external dependency and not Docusaurus.This issue is caused by an external dependency and not Docusaurus.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Once someone has entered the search component via
cmd+K, all future keystrokes are sent to the search even when it's closed. This makes it impossible to use commands likecmd+Rorcmd+Lbecause they are captured in search.I've tested this on a mac using chrome. It is reproducible on https://docusaurus.io/ as well as my site running docusaurus 3.9.2 and 3.8.1.
Reproducible demo
reproducible on the Docusaurus docs
Steps to reproduce
cmd+Kto bring up searchescapeto close searchcmd+Rto reload. Notice that this doesn't reload the page but instead opens the search modal with the textrExpected behavior
Commands like
cmd+Rand similar are executed properly and not captured by search.Actual behavior
the text is captured in the search input
Your environment
Self-service