mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 23:08:54 +02:00
fix(v2): fix DocSearch keyboard navigator (#3853)
* fix(v2): fix DocSearch keyboard navigator * Update index.js * Update index.js * Update index.js * Update index.js Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
9d34214205
commit
915f949c25
1 changed files with 2 additions and 2 deletions
|
@ -92,8 +92,8 @@ function DocSearch({contextualSearch, ...props}) {
|
|||
);
|
||||
|
||||
const navigator = useRef({
|
||||
navigate({suggestionUrl}) {
|
||||
history.push(suggestionUrl);
|
||||
navigate({itemUrl}) {
|
||||
history.push(itemUrl);
|
||||
},
|
||||
}).current;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue