diff --git a/App/frontend-app/src/components/chat/chatRoom.tsx b/App/frontend-app/src/components/chat/chatRoom.tsx index 737229c2..a0922db3 100644 --- a/App/frontend-app/src/components/chat/chatRoom.tsx +++ b/App/frontend-app/src/components/chat/chatRoom.tsx @@ -73,6 +73,7 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc }); const [referencesForFeedbackForm, setReferencesForFeedbackForm] = useState([]); const [textAreaValue, setTextAreaValue] = useState(""); + const [textareaKey, setTextareaKey] = useState(0); const inputRef = useRef(null); const [allChunkTexts, setAllChunkTexts] = useState([]); @@ -568,12 +569,15 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc setSelectedDocument([]); setIsLoading(false); setChatSessionId(null); + setTextAreaValue(""); + setTextareaKey(prev => prev + 1); }} > {t('components.chat.new-topic')}