From dd184d59eeaee8575e9d37934fbb9c497bd860a5 Mon Sep 17 00:00:00 2001 From: VipinDevelops Date: Wed, 5 Mar 2025 19:22:30 +0530 Subject: [PATCH] add back submitting --- .../issue-detail/issue-activity/comments/comment-create.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx b/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx index 6cd9b61430..2c91a6c802 100644 --- a/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx +++ b/web/core/components/issues/issue-detail/issue-activity/comments/comment-create.tsx @@ -88,7 +88,7 @@ export const IssueCommentCreate: FC = (props) => { "-bottom-5": !peekIssue, })} onKeyDown={(e) => { - if (e.key === "Enter" && !e.shiftKey && !e.ctrlKey && !e.metaKey && !isEmpty && editorRef.current?.isEditorReadyToDiscard()) + if (e.key === "Enter" && !e.shiftKey && !e.ctrlKey && !e.metaKey && !isEmpty && !isSubmitting && editorRef.current?.isEditorReadyToDiscard()) handleSubmit(onSubmit)(e); }} >