mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-02-26 14:21:47 +00:00
* Fix: Autoselect input text box on pageload and conversation reset - Added autoFocus to useEffect dependency array in MessageInput - Added key prop to MessageInput to force remount on conversation reset - Implemented refocus after message submission - Removed duplicate input clearing logic in handleKeyDown Fixes #2177 * fix: optimize input handling --------- Co-authored-by: Alex <a@tushynski.me>
This commit is contained in:
@@ -179,6 +179,7 @@ export default function Conversation() {
|
||||
<div className="bg-opacity-0 z-3 flex h-auto w-full max-w-[1300px] flex-col items-end self-center rounded-2xl py-1 md:w-9/12 lg:w-8/12 xl:w-8/12 2xl:w-6/12">
|
||||
<div className="flex w-full items-center rounded-[40px] px-2">
|
||||
<MessageInput
|
||||
key={conversationId || 'new'}
|
||||
onSubmit={(text) => {
|
||||
handleQuestionSubmission(text);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user