feat(MessageInput): Auto focus message input
This commit is contained in:
parent
652639ef4c
commit
58a3f8efbc
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ const MessageInput = ({
|
||||||
minRows={1}
|
minRows={1}
|
||||||
className="mb-2 bg-transparent placeholder:text-black/50 dark:placeholder:text-white/50 text-sm text-black dark:text-white resize-none focus:outline-none w-full max-h-24 lg:max-h-36 xl:max-h-48"
|
className="mb-2 bg-transparent placeholder:text-black/50 dark:placeholder:text-white/50 text-sm text-black dark:text-white resize-none focus:outline-none w-full max-h-24 lg:max-h-36 xl:max-h-48"
|
||||||
placeholder={firstMessage ? 'Ask anything...' : 'Ask a follow-up'}
|
placeholder={firstMessage ? 'Ask anything...' : 'Ask a follow-up'}
|
||||||
|
autoFocus={true}
|
||||||
/>
|
/>
|
||||||
<Optimization
|
<Optimization
|
||||||
optimizationMode={optimizationMode}
|
optimizationMode={optimizationMode}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue