fix: multiple issue comment (#3854)

This commit is contained in:
Anmol Singh Bhatia 2024-03-01 17:20:36 +05:30 committed by GitHub
parent d39f2526a2
commit e4bccea824
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ export const IssueCommentCreate: FC<TIssueCommentCreate> = (props) => {
return (
<div
onKeyDown={(e) => {
if (e.key === "Enter" && !e.shiftKey && !isEmpty) {
if (e.key === "Enter" && !e.shiftKey && !isEmpty && !isSubmitting) {
handleSubmit(onSubmit)(e);
}
}}