mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 05:58:38 +02:00
fix(theme-classic): temporarily disable toc heading autoscrolling (#6748)
This commit is contained in:
parent
ece7399d2e
commit
89560226f0
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ export default function useTOCHighlight(
|
||||||
}
|
}
|
||||||
link.classList.add(linkActiveClassName);
|
link.classList.add(linkActiveClassName);
|
||||||
lastActiveLinkRef.current = link;
|
lastActiveLinkRef.current = link;
|
||||||
link.scrollIntoView({block: 'nearest'});
|
// link.scrollIntoView({block: 'nearest'});
|
||||||
} else {
|
} else {
|
||||||
link.classList.remove(linkActiveClassName);
|
link.classList.remove(linkActiveClassName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue