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-2616] fix: issue widget attachment (#5820)

Anmol Singh Bhatia658542cc6279
diff --git a/web/core/components/issues/issue-detail-widgets/attachments/quick-action-button.tsx b/web/core/components/issues/issue-detail-widgets/attachments/quick-action-button.tsx
index cfdb3c695a..105d7bd133 100644
--- a/web/core/components/issues/issue-detail-widgets/attachments/quick-action-button.tsx
+++ b/web/core/components/issues/issue-detail-widgets/attachments/quick-action-button.tsx
@@ -78,9 +78,16 @@ export const IssueAttachmentActionButton: FC<Props> = observer((props) => {
});
return (
- <button {...getRootProps()} type="button" disabled={disabled}>
- <input {...getInputProps()} />
- {customButton ? customButton : <Plus className="h-4 w-4" />}
- </button>
+ <div
+ onClick={(e) => {
+ // TODO: Remove extra div and move event propagation to button
+ e.stopPropagation();
+ }}
+ >
+ <button {...getRootProps()} type="button" disabled={disabled}>
+ <input {...getInputProps()} />
+ {customButton ? customButton : <Plus className="h-4 w-4" />}
+ </button>
+ </div>
);
});