diff --git a/src/pages/index.tsx b/src/pages/index.tsx index aef075d..b81c09e 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -30,7 +30,8 @@ const IndexPage: React.FC = ({ inputRef }) => { React.useEffect(() => { if (inputRef.current) { - inputRef.current.focus(); + inputRef.current.scrollIntoView(); + inputRef.current.focus({preventScroll: true}); } }, [history]);