Skip to content

Commit 7cdf7aa

Browse files
authored
Merge pull request #770 from citation-file-format/670-better-tab-flow
2 parents 0a570ae + b26e702 commit 7cdf7aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/router/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export default route((/* { store, ssrContext } */) => {
3636
Router.beforeEach((to) => {
3737
const { navigateDirect } = useApp()
3838
const newStepName = to.path.replace('/', '') as StepNameType
39+
document.body.setAttribute('tabindex', '-1')
40+
document.body.focus()
41+
document.body.removeAttribute('tabindex')
3942
navigateDirect(newStepName)
4043
})
4144
return Router

0 commit comments

Comments
 (0)