mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
[WEB-916] fix: description editor missing when using create more button in create issue modal. (#4137)
* [WEB-916] fix: description editor missing when using create more button in create issue modal. * chore: handle edge cases. * chore: handle edge cases.
This commit is contained in:
parent
39b5a58ce8
commit
8d009187ab
@ -193,6 +193,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
|||||||
reset({
|
reset({
|
||||||
...defaultValues,
|
...defaultValues,
|
||||||
project_id: getValues("project_id"),
|
project_id: getValues("project_id"),
|
||||||
|
description_html: data?.description_html ?? "<p></p>",
|
||||||
});
|
});
|
||||||
editorRef?.current?.clearEditor();
|
editorRef?.current?.clearEditor();
|
||||||
};
|
};
|
||||||
@ -481,7 +482,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
|||||||
initialValue={data?.description_html}
|
initialValue={data?.description_html}
|
||||||
customClassName="min-h-[7rem] border-custom-border-100"
|
customClassName="min-h-[7rem] border-custom-border-100"
|
||||||
onChange={(description: any, description_html: string) => {
|
onChange={(description: any, description_html: string) => {
|
||||||
onChange(description_html);
|
onChange(description_html === "" ? "<p></p>" : description_html);
|
||||||
handleFormChange();
|
handleFormChange();
|
||||||
}}
|
}}
|
||||||
mentionHighlights={mentionHighlights}
|
mentionHighlights={mentionHighlights}
|
||||||
|
@ -174,6 +174,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
|
|||||||
!createMore && handleClose();
|
!createMore && handleClose();
|
||||||
if (createMore) {
|
if (createMore) {
|
||||||
issueTitleRef && issueTitleRef?.current?.focus();
|
issueTitleRef && issueTitleRef?.current?.focus();
|
||||||
|
setDescription("<p></p>");
|
||||||
setChangesMade(null);
|
setChangesMade(null);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
Loading…
Reference in New Issue
Block a user