diff --git a/src/components/InputBox/index.jsx b/src/components/InputBox/index.jsx index d50f95f2..e2252dad 100644 --- a/src/components/InputBox/index.jsx +++ b/src/components/InputBox/index.jsx @@ -87,7 +87,7 @@ export function InputBox({ onSubmit, enabled, postMessage, reverseResizeDir }) { useEffect(() => { if (enabled) getUserConfig().then((config) => { - if (config.focusAfterAnswer) inputRef.current.focus() + if (config.focusAfterAnswer) inputRef.current?.focus() }) }, [enabled])