Skip to content

Commit e370f18

Browse files
Merge pull request #397 from microsoft/bug19186fix
fix: Disable send button when input is empty or contains only spaces
2 parents a1c6131 + 27f9f20 commit e370f18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

App/frontend-app/src/components/chat/chatRoom.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc
583583
placeholder={t('components.chat.input-placeholder')}
584584
disabled={isLoading}
585585
onSubmit={handleSend}
586+
disableSend = {textAreaValue.trim().length === 0 || isLoading}
586587
contentAfter={undefined}
587588
/>
588589
</div>

0 commit comments

Comments
 (0)