Skip to content

Commit

Permalink
fix(theme): outline marker flicks when navigating towards above
Browse files Browse the repository at this point in the history
closes #2665
closes #2676
  • Loading branch information
brc-dd committed Aug 7, 2023
1 parent 81e7405 commit e8ebf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPDocOutlineItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defineProps<{
function onClick({ target: el }: Event) {
const id = (el as HTMLAnchorElement).href!.split('#')[1]
const heading = document.getElementById(decodeURIComponent(id))
heading?.focus()
heading?.focus({ preventScroll: true })
}
</script>

Expand Down

0 comments on commit e8ebf1b

Please sign in to comment.