Skip to content

Commit

Permalink
fix(docsearch): use scrollTop on body
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed May 20, 2020
1 parent c0baaa6 commit 1ef1947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocSearchModal.tsx
Expand Up @@ -275,7 +275,7 @@ export function DocSearchModal({

return () => {
document.body.classList.remove('DocSearch--active');
window.scrollTop = scrollY.current;
document.body.scrollTop = scrollY.current;
};
}, []);

Expand Down

0 comments on commit 1ef1947

Please sign in to comment.