Skip to content

Commit f569bcf

Browse files
committed
fix: update useRouteFocus fallback to target #main-content
- Change fallback from #app (doesn't exist) to #main-content (the id we added to all <main> elements in the layout fixes)
1 parent 673d4e5 commit f569bcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

VueApp/src/composables/use-route-focus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { nextTick } from "vue"
99
export function useRouteFocus(router: Router) {
1010
router.afterEach(() => {
1111
nextTick(() => {
12-
const main = document.querySelector("main") || document.querySelector("#app")
12+
const main = document.querySelector("#main-content") || document.querySelector("main")
1313
if (main instanceof HTMLElement) {
1414
// Set tabindex temporarily so the element can receive focus
1515
// without permanently joining the tab order

0 commit comments

Comments
 (0)