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