Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(docsearch): use scrollTop for IE support
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed May 14, 2020
1 parent e1ed4e8 commit b51e81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/website/src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function SearchBar() {
function onClose() {
setIsShowing(false);
document.body.classList.remove('DocSearch--active');
window.scrollTo(0, scrollY.current);
window.scrollTop = scrollY.current;
},
[setIsShowing]
);
Expand Down

0 comments on commit b51e81d

Please sign in to comment.