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:
François Chalifour 2020-12-01 17:49:14 +01:00 committed by GitHub
parent 9d34214205
commit 915f949c25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,8 +92,8 @@ function DocSearch({contextualSearch, ...props}) {
);
const navigator = useRef({
navigate({suggestionUrl}) {
history.push(suggestionUrl);
navigate({itemUrl}) {
history.push(itemUrl);
},
}).current;