fix: creation of new todo list item in comments (#5242)
This commit is contained in:
parent
8339daa3ee
commit
5d2983d027
2 changed files with 1 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ export const EnterKeyExtension = (onEnterKeyPress?: (descriptionHTML: string) =>
|
||||||
editor.commands.first(({ commands }) => [
|
editor.commands.first(({ commands }) => [
|
||||||
() => commands.newlineInCode(),
|
() => commands.newlineInCode(),
|
||||||
() => commands.splitListItem("listItem"),
|
() => commands.splitListItem("listItem"),
|
||||||
|
() => commands.splitListItem("taskItem"),
|
||||||
() => commands.createParagraphNear(),
|
() => commands.createParagraphNear(),
|
||||||
() => commands.liftEmptyBlock(),
|
() => commands.liftEmptyBlock(),
|
||||||
() => commands.splitBlock(),
|
() => commands.splitBlock(),
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,6 @@ export const IssueCommentCreate: FC<TIssueCommentCreate> = (props) => {
|
||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
workspaceSlug={workspaceSlug}
|
workspaceSlug={workspaceSlug}
|
||||||
onEnterKeyPress={(commentHTML) => {
|
onEnterKeyPress={(commentHTML) => {
|
||||||
console.log("commentHTML", commentHTML);
|
|
||||||
const isEmpty =
|
const isEmpty =
|
||||||
commentHTML?.trim() === "" ||
|
commentHTML?.trim() === "" ||
|
||||||
commentHTML === "<p></p>" ||
|
commentHTML === "<p></p>" ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue