From 9c42cb73a6e7463a1cbbb878253b3cd0c8aaa657 Mon Sep 17 00:00:00 2001 From: developomp Date: Wed, 19 Jan 2022 11:58:25 +0900 Subject: [PATCH] fixed # anchor not working --- source/src/components/Navbar.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/src/components/Navbar.tsx b/source/src/components/Navbar.tsx index 4d656f9..514437b 100644 --- a/source/src/components/Navbar.tsx +++ b/source/src/components/Navbar.tsx @@ -101,8 +101,6 @@ const ReadProgress = () => { // update on path change useEffect(() => { setTimeout(() => { - window.scrollTo({ top: 0, behavior: "smooth" }) - scrollHandler() }, 100) }, [location])