Fix recomputing of :target [ci skip]

Prevents additional history entry
This commit is contained in:
Ines Montani 2019-02-25 10:03:20 +01:00
parent 55bb570f51
commit 1981b194cc
1 changed files with 0 additions and 1 deletions

View File

@ -42,7 +42,6 @@ export const onRouteUpdate = ({ location }) => {
// Navigate to targeted element
el.scrollIntoView()
// Force recomputing :target pseudo class with pushState/popState
window.location.hash = ''
window.location.hash = location.hash
}
}, 0)