fix(theme): hide outline marker on scroll to top

pull/2744/head
Divyansh Singh 1 year ago
parent f4a5c43cb0
commit 81e7405e19

@ -168,7 +168,9 @@ export function useActiveAnchor(
prevActiveLink.classList.remove('active')
}
if (hash !== null) {
if (hash == null) {
prevActiveLink = null
} else {
prevActiveLink = container.value.querySelector(
`a[href="${decodeURIComponent(hash)}"]`
)

Loading…
Cancel
Save