add back submitting

This commit is contained in:
VipinDevelops
2025-03-05 19:22:30 +05:30
parent fe064ccebc
commit dd184d59ee

View File

@@ -88,7 +88,7 @@ export const IssueCommentCreate: FC<TIssueCommentCreate> = (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);
}}
>