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.

fix: resetting the changesMage when the createmore toggle is turned on in issue create-edit modal (#4039)

guru_sainath72392d573178
diff --git a/web/components/issues/issue-modal/modal.tsx b/web/components/issues/issue-modal/modal.tsx
index 609392d4fa..29633918fc 100644
--- a/web/components/issues/issue-modal/modal.tsx
+++ b/web/components/issues/issue-modal/modal.tsx
@@ -171,7 +171,10 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
path: router.asPath,
});
!createMore && handleClose();
- if (createMore) issueTitleRef && issueTitleRef?.current?.focus();
+ if (createMore) {
+ issueTitleRef && issueTitleRef?.current?.focus();
+ setChangesMade(null);
+ }
return response;
} catch (error) {
setToast({