clicking a tab no longer auto-scrolls

This commit is contained in:
Kevin Bell 2026-07-27 14:44:17 -06:00
parent bc9a133ee6
commit fa2435388a

View File

@ -86,8 +86,8 @@ function showRoute({ announce = true, focus = false } = {}) {
if (heading) { if (heading) {
heading.setAttribute("tabindex", "-1"); heading.setAttribute("tabindex", "-1");
heading.focus({ preventScroll: true }); heading.focus({ preventScroll: true });
heading.scrollIntoView({ behavior: "smooth", block: "start" });
} }
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
} }
} }