fix: update selector for active menu item in useMenuScroll hook (#7829)

master^2
AxiosLeo 2026-04-22 07:08:40 +08:00 committed by GitHub
parent 6885927441
commit 5907c04e00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 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({