Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-916] fix: description editor missing when using create more button in create issue modal. (#4137)

Prateek Shourya8d009187abf6
diff --git a/web/components/issues/issue-modal/form.tsx b/web/components/issues/issue-modal/form.tsx
index ed8a562c31..a713327f6b 100644
--- a/web/components/issues/issue-modal/form.tsx
+++ b/web/components/issues/issue-modal/form.tsx
@@ -193,6 +193,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
reset({
...defaultValues,
project_id: getValues("project_id"),
+ description_html: data?.description_html ?? "<p></p>",
});
editorRef?.current?.clearEditor();
};
@@ -481,7 +482,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
initialValue={data?.description_html}
customClassName="min-h-[7rem] border-custom-border-100"
onChange={(description: any, description_html: string) => {
- onChange(description_html);
+ onChange(description_html === "" ? "<p></p>" : description_html);
handleFormChange();
}}
mentionHighlights={mentionHighlights}
diff --git a/web/components/issues/issue-modal/modal.tsx b/web/components/issues/issue-modal/modal.tsx
index 8bb4e972a3..fc4d7f016a 100644
--- a/web/components/issues/issue-modal/modal.tsx
+++ b/web/components/issues/issue-modal/modal.tsx
@@ -174,6 +174,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
!createMore && handleClose();
if (createMore) {
issueTitleRef && issueTitleRef?.current?.focus();
+ setDescription("<p></p>");
setChangesMade(null);
}
return response;