Skip to content

Commit

Permalink
fix: 모바일 화면에서 도서목록 넘어갈때 최상단으로 스크롤
Browse files Browse the repository at this point in the history
  • Loading branch information
not-using committed Nov 17, 2024
1 parent af2b40c commit a9220dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component/utils/HeaderMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ const HeaderMobile = () => {
<Image src={Logo} alt="logo" />
</Link>
<nav className="header-mobile__gnb__wrapper">
<Link className="header-mobile__search" to={{ pathname: `/search` }}>
<Link
className="header-mobile__search"
to={{ pathname: `/search` }}
onClick={() => window.scrollTo(0, 0)}
>
<Image src={SearchBook} alt="search" />
</Link>
<button
Expand Down

0 comments on commit a9220dd

Please sign in to comment.