mirror of
https://github.com/jetkvm/website.git
synced 2025-09-16 08:38:16 +00:00
Remove automatic scroll to top effect in docs route
This commit is contained in:
parent
86a89fee4c
commit
7802eefc69
@ -144,12 +144,6 @@ export default function DocsRoute() {
|
|||||||
section.links.find(link => link.href === location.pathname),
|
section.links.find(link => link.href === location.pathname),
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
window.scrollTo({
|
|
||||||
top: 0,
|
|
||||||
behavior: "smooth",
|
|
||||||
});
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const Component = useMemo(() => getMDXComponent(code), [code]);
|
const Component = useMemo(() => getMDXComponent(code), [code]);
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user