This commit is contained in:
dap
2026-04-28 09:49:13 +08:00
4 changed files with 26 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ export function useMenuScroll(
if (!isEnabled) return;
const activeElement = document.querySelector(
`aside li[role=menuitem].is-active`,
`aside a[role=menuitem].is-active`,
);
if (activeElement) {
activeElement.scrollIntoView({