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: spreadsheet layout quick action event propagation (#5141)

Anmol Singh Bhatia0b1f9f0e5b77
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx b/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx
index 58ed247d19..189fdb9065 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx
@@ -30,9 +30,7 @@ interface Props {
isEstimateEnabled: boolean;
quickActions: TRenderQuickActions;
canEditProperties: (projectId: string | undefined) => boolean;
- updateIssue:
- | ((projectId: string | null, issueId: string, data: Partial<TIssue>) => Promise<void>)
- | undefined;
+ updateIssue: ((projectId: string | null, issueId: string, data: Partial<TIssue>) => Promise<void>) | undefined;
portalElement: React.MutableRefObject<HTMLDivElement | null>;
nestingLevel: number;
issueId: string;
@@ -133,9 +131,7 @@ interface IssueRowDetailsProps {
isEstimateEnabled: boolean;
quickActions: TRenderQuickActions;
canEditProperties: (projectId: string | undefined) => boolean;
- updateIssue:
- | ((projectId: string | null, issueId: string, data: Partial<TIssue>) => Promise<void>)
- | undefined;
+ updateIssue: ((projectId: string | null, issueId: string, data: Partial<TIssue>) => Promise<void>) | undefined;
portalElement: React.MutableRefObject<HTMLDivElement | null>;
nestingLevel: number;
issueId: string;
@@ -328,7 +324,10 @@ const IssueRowDetails = observer((props: IssueRowDetailsProps) => {
</Tooltip>
</div>
</div>
- <div className={`hidden group-hover:block ${isMenuActive ? "!block" : ""}`}>
+ <div
+ className={`hidden group-hover:block ${isMenuActive ? "!block" : ""}`}
+ onClick={(e) => e.stopPropagation()}
+ >
{quickActions({
issue: issueDetail,
parentRef: cellRef,