diff --git a/src/components/NoteList/index.tsx b/src/components/NoteList/index.tsx index b184723..293bc7e 100644 --- a/src/components/NoteList/index.tsx +++ b/src/components/NoteList/index.tsx @@ -369,6 +369,7 @@ export default function NoteList({ )} +
) } diff --git a/src/layouts/SecondaryPageLayout/index.tsx b/src/layouts/SecondaryPageLayout/index.tsx index b279765..e3a1cad 100644 --- a/src/layouts/SecondaryPageLayout/index.tsx +++ b/src/layouts/SecondaryPageLayout/index.tsx @@ -46,7 +46,7 @@ const SecondaryPageLayout = forwardRef( useEffect(() => { if (isSmallScreen) { - window.scrollTo({ top: 0 }) + setTimeout(() => window.scrollTo({ top: 0 }), 0) return } }, [])