Skip to content

Commit

Permalink
Merge pull request Cveinnt#5 from mjh316/patch-1
Browse files Browse the repository at this point in the history
Update scrolling for api commands
  • Loading branch information
Cveinnt authored May 17, 2022
2 parents 5d649cd + fe5e6f4 commit 434ac1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const IndexPage: React.FC<IndexPageProps> = ({ inputRef }) => {

React.useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
inputRef.current.scrollIntoView();
inputRef.current.focus({preventScroll: true});
}
}, [history]);

Expand Down

0 comments on commit 434ac1c

Please sign in to comment.