Skip to content

Commit

Permalink
fix(v2): fix DocSearch keyboard navigator (#3853)
Browse files Browse the repository at this point in the history
* fix(v2): fix DocSearch keyboard navigator

* Update index.js

* Update index.js

* Update index.js

* Update index.js

Co-authored-by: Sébastien Lorber <[email protected]>
  • Loading branch information
francoischalifour and slorber authored Dec 1, 2020
1 parent 9d34214 commit 915f949
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ function DocSearch({contextualSearch, ...props}) {
);

const navigator = useRef({
navigate({suggestionUrl}) {
history.push(suggestionUrl);
navigate({itemUrl}) {
history.push(itemUrl);
},
}).current;

Expand Down

0 comments on commit 915f949

Please sign in to comment.