From 5d2983d02724bedba8e8a1f793c35c46b09f6c3e Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 29 Jul 2024 11:29:09 +0530 Subject: [PATCH] fix: creation of new todo list item in comments (#5242) --- packages/editor/src/core/extensions/enter-key-extension.tsx | 1 + .../issue-detail/issue-activity/comments/comment-create.tsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/core/extensions/enter-key-extension.tsx b/packages/editor/src/core/extensions/enter-key-extension.tsx index a01b58e59..311ead497 100644 --- a/packages/editor/src/core/extensions/enter-key-extension.tsx +++ b/packages/editor/src/core/extensions/enter-key-extension.tsx @@ -17,6 +17,7 @@ export const EnterKeyExtension = (onEnterKeyPress?: (descriptionHTML: string) => editor.commands.first(({ commands }) => [ () => commands.newlineInCode(), () => commands.splitListItem("listItem"), + () => commands.splitListItem("taskItem"), () => commands.createParagraphNear(), () => commands.liftEmptyBlock(), () => commands.splitBlock(), 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 d4120e93f..90df745b3 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 @@ -66,7 +66,6 @@ export const IssueCommentCreate: FC = (props) => { projectId={projectId} workspaceSlug={workspaceSlug} onEnterKeyPress={(commentHTML) => { - console.log("commentHTML", commentHTML); const isEmpty = commentHTML?.trim() === "" || commentHTML === "

" ||