Skip to content

Commit 27f9f20

Browse files
Disable send button when input is empty or contains only spaces
1 parent a1c6131 commit 27f9f20

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)