We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b98113 commit 00d94e9Copy full SHA for 00d94e9
src/client/theme-default/components/VPDocOutlineItem.vue
@@ -7,8 +7,8 @@ defineProps<{
7
}>()
8
9
function onClick({ target: el }: Event) {
10
- const id = '#' + (el as HTMLAnchorElement).href!.split('#')[1]
11
- const heading = document.getElementById(decodeURIComponent(id).slice(1))
+ const id = (el as HTMLAnchorElement).href!.split('#')[1]
+ const heading = document.getElementById(decodeURIComponent(id))
12
heading?.focus()
13
}
14
</script>
0 commit comments