Merge pull request #5 from mjh316/patch-1

Update scrolling for api commands
pull/6/head
Cveinnt 3 years ago committed by GitHub
commit 434ac1c380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]);

Loading…
Cancel
Save