Skip to content

Commit cc6d07e

Browse files
authored
fix nav submenu autoscroll (#768)
fix #759
1 parent 3c83b3d commit cc6d07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/site-kit/src/lib/nav/MobileSubMenu.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
});
1313
1414
export async function scrollToActive() {
15-
const active = nav.querySelector('[aria-current="true"]') as HTMLElement;
15+
const active = nav.querySelector('[aria-current="page"]') as HTMLElement;
1616
1717
if (!active) {
1818
nav.scrollTop = 0;

0 commit comments

Comments
 (0)