clicking a tab no longer auto-scrolls
This commit is contained in:
parent
bc9a133ee6
commit
fa2435388a
@ -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" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user