mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +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({
|
const navigator = useRef({
|
||||||
navigate({suggestionUrl}) {
|
navigate({itemUrl}) {
|
||||||
history.push(suggestionUrl);
|
history.push(itemUrl);
|
||||||
},
|
},
|
||||||
}).current;
|
}).current;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue