clicking a tab no longer auto-scrolls
This commit is contained in:
+1
-1
@@ -86,8 +86,8 @@ function showRoute({ announce = true, focus = false } = {}) {
|
||||
if (heading) {
|
||||
heading.setAttribute("tabindex", "-1");
|
||||
heading.focus({ preventScroll: true });
|
||||
heading.scrollIntoView({ behavior: "smooth", block: "start" });
|
||||
}
|
||||
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user