Skip to content

Commit e8ebf1b

Browse files
committedAug 7, 2023
fix(theme): outline marker flicks when navigating towards above
closes #2665 closes #2676
1 parent 81e7405 commit e8ebf1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/client/theme-default/components/VPDocOutlineItem.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defineProps<{
99
function onClick({ target: el }: Event) {
1010
const id = (el as HTMLAnchorElement).href!.split('#')[1]
1111
const heading = document.getElementById(decodeURIComponent(id))
12-
heading?.focus()
12+
heading?.focus({ preventScroll: true })
1313
}
1414
</script>
1515

0 commit comments

Comments
 (0)
Please sign in to comment.