We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a570ae + b26e702 commit 7cdf7aaCopy full SHA for 7cdf7aa
1 file changed
src/router/index.ts
@@ -36,6 +36,9 @@ export default route((/* { store, ssrContext } */) => {
36
Router.beforeEach((to) => {
37
const { navigateDirect } = useApp()
38
const newStepName = to.path.replace('/', '') as StepNameType
39
+ document.body.setAttribute('tabindex', '-1')
40
+ document.body.focus()
41
+ document.body.removeAttribute('tabindex')
42
navigateDirect(newStepName)
43
})
44
return Router
0 commit comments