mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
UI: Add dependency array to TerminalInput keydown useEffect (#2620)
This commit is contained in:
@@ -231,7 +231,7 @@ export function TerminalInput(): React.ReactElement {
|
||||
}
|
||||
document.addEventListener("keydown", keyDown);
|
||||
return () => document.removeEventListener("keydown", keyDown);
|
||||
});
|
||||
}, []);
|
||||
|
||||
async function onKeyDown(event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>): Promise<void> {
|
||||
const ref = terminalInput.current;
|
||||
|
||||
Reference in New Issue
Block a user