Skip to content

Commit bc8998a

Browse files
committed
bug fix
1 parent c6f0ce9 commit bc8998a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

landing/src/components/TerminalDemo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ export function TerminalDemo() {
105105
}
106106
};
107107

108-
const focusInput = () => inputRef.current?.focus();
108+
const focusInput = () => inputRef.current?.focus({ preventScroll: true });
109109

110110
useEffect(() => {
111-
focusInput();
111+
// Don't auto-focus on mount to prevent scroll
112+
// focusInput();
112113
}, []);
113114

114115
const output = currentCommand && commandOutputs[currentCommand]

0 commit comments

Comments
 (0)