fixed # anchor not working
This commit is contained in:
parent
91401f083d
commit
9c42cb73a6
1 changed files with 0 additions and 2 deletions
|
@ -101,8 +101,6 @@ const ReadProgress = () => {
|
||||||
// update on path change
|
// update on path change
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" })
|
|
||||||
|
|
||||||
scrollHandler()
|
scrollHandler()
|
||||||
}, 100)
|
}, 100)
|
||||||
}, [location])
|
}, [location])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue