fixed # anchor not working

This commit is contained in:
Kim, Jimin 2022-01-19 11:58:25 +09:00
parent 91401f083d
commit 9c42cb73a6

View file

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