Fix some other issues
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
@@ -20,7 +20,7 @@ export function TableOfContents() {
|
||||
// Update indicator position when activeId changes
|
||||
useLayoutEffect(() => {
|
||||
if (!activeId) return;
|
||||
|
||||
|
||||
// Use requestAnimationFrame to defer setState call
|
||||
const rafId = requestAnimationFrame(() => {
|
||||
const activeElement = document.querySelector(
|
||||
|
||||
Reference in New Issue
Block a user