fix(theme): outline marker flicks when navigating towards above

closes #2665
closes #2676
pull/2744/head
Divyansh Singh 1 year ago
parent 81e7405e19
commit e8ebf1b048

@ -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>

Loading…
Cancel
Save