fix(docsearch): use scrollTop on body
This commit is contained in:
parent
c0baaa63e1
commit
1ef1947721
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ export function DocSearchModal({
|
|||
|
||||
return () => {
|
||||
document.body.classList.remove('DocSearch--active');
|
||||
window.scrollTop = scrollY.current;
|
||||
document.body.scrollTop = scrollY.current;
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue