mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-07 02:31:58 +08:00
fix: update selector for active menu item in useMenuScroll hook (#7829)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user