Merge pull request #1486 from makeplane/sync/11326207307

sync: community changes
This commit is contained in:
Satish Gandham
2024-10-14 16:41:55 +05:30
committed by GitHub

View File

@@ -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>
);
});