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

Commit 129c1d1

Browse files
fix(docsearch): use scrollTop on body
1 parent f8d0fbc commit 129c1d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/docsearch-react/src/DocSearchModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export function DocSearchModal({
275275

276276
return () => {
277277
document.body.classList.remove('DocSearch--active');
278-
window.scrollTop = scrollY.current;
278+
document.body.scrollTop = scrollY.current;
279279
};
280280
}, []);
281281

0 commit comments

Comments
 (0)