fix: don't change url hash while scrolling (#991)

pull/993/head
Divyansh Singh 2 years ago committed by GitHub
parent b86e9febd7
commit 082694470a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,7 +120,6 @@ export function useActiveAnchor(
const [isActive, hash] = isAnchorActive(i, anchor, nextAnchor) const [isActive, hash] = isAnchorActive(i, anchor, nextAnchor)
if (isActive) { if (isActive) {
history.replaceState(null, document.title, hash ? hash : ' ')
activateLink(hash) activateLink(hash)
return return
} }

Loading…
Cancel
Save