Skip to content

Commit 1ef1947

Browse files
fix(docsearch): use scrollTop on body
1 parent c0baaa6 commit 1ef1947

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)