fumadocs-core 16.1.0 → 16.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/toc.js +1 -1
- package/package.json +1 -1
package/dist/toc.js
CHANGED
|
@@ -100,7 +100,7 @@ function useAnchorObserver(watch, single) {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
if (state.visible.size === 0) {
|
|
103
|
-
const viewTop = entries[0]
|
|
103
|
+
const viewTop = entries.length > 0 ? entries[0]?.rootBounds?.top ?? 0 : 0;
|
|
104
104
|
let fallback;
|
|
105
105
|
let min = -1;
|
|
106
106
|
for (const id of watch) {
|