We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e7405 commit e8ebf1bCopy full SHA for e8ebf1b
src/client/theme-default/components/VPDocOutlineItem.vue
@@ -9,7 +9,7 @@ defineProps<{
9
function onClick({ target: el }: Event) {
10
const id = (el as HTMLAnchorElement).href!.split('#')[1]
11
const heading = document.getElementById(decodeURIComponent(id))
12
- heading?.focus()
+ heading?.focus({ preventScroll: true })
13
}
14
</script>
15
0 commit comments