File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ export function ScrollActiveLink({activeLinkSelector}: Props) {
3737 }
3838
3939 const scrollContainer = findScrollContainer ( firstLink ) ;
40- if ( ! scrollContainer || scrollContainer === document . body || scrollContainer === document . documentElement ) {
40+ if (
41+ ! scrollContainer ||
42+ scrollContainer === document . body ||
43+ scrollContainer === document . documentElement
44+ ) {
4145 return undefined ;
4246 }
4347
@@ -64,7 +68,11 @@ export function ScrollActiveLink({activeLinkSelector}: Props) {
6468
6569 // Find the actual scrollable container (could be .toc, .sidebar, or another element)
6670 const scrollContainer = findScrollContainer ( activeLink ) ;
67- if ( ! scrollContainer || scrollContainer === document . body || scrollContainer === document . documentElement ) {
71+ if (
72+ ! scrollContainer ||
73+ scrollContainer === document . body ||
74+ scrollContainer === document . documentElement
75+ ) {
6876 return ;
6977 }
7078
You can’t perform that action at this time.
0 commit comments