Skip to content

Commit

Permalink
Merge pull request #193 from microsoft/PSL-BUG-13861
Browse files Browse the repository at this point in the history
fix: Disable Send/Submit Button by Default in Chat Section
  • Loading branch information
Roopan-Microsoft authored Feb 7, 2025
2 parents 9f4973b + 57f78d7 commit aa14d56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion App/frontend-app/src/components/chat/chatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc
};

function handleSend(ev: TextareaSubmitEvents, data: TextareaValueData) {
makeApiRequest(data.value);
if (data.value.trim() !='') {
makeApiRequest(data.value);
}
}

// const handleOpenReference = async (referenceId: string, chunkTexts: string[]) => {
Expand Down

0 comments on commit aa14d56

Please sign in to comment.