Skip to content

Commit

Permalink
issubmiting (#277)
Browse files Browse the repository at this point in the history
johntanas authored Apr 26, 2024
1 parent 42d821c commit 52e323b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/client/ChatInput.tsx
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ function ChatInput({ onSubmitMessage, isSubmitting }: ChatInputProps) {
}

const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === "Enter" && !e.shiftKey) {
if (e.key === "Enter" && !e.shiftKey && !isSubmitting) {
handleSubmit(e);
}
};

0 comments on commit 52e323b

Please sign in to comment.