Compare commits

...

1 Commits

Author SHA1 Message Date
Prateek Shourya
5f2350e0fc [WEB-496] improvement: disable submit on enter when there is no text in comment box. 2024-02-25 10:49:24 +05:30

View File

@@ -82,7 +82,7 @@ export const IssueCommentCreate: FC<TIssueCommentCreate> = (props) => {
render={({ field: { value, onChange } }) => (
<LiteTextEditorWithRef
onEnterKeyPress={(e) => {
handleSubmit(onSubmit)(e);
!(watch("comment_html") === "") && handleSubmit(onSubmit)(e);
}}
cancelUploadImage={fileService.cancelUpload}
uploadFile={fileService.getUploadFileFunction(workspaceSlug as string)}