Skip to content

Commit

Permalink
[WEB-2616] fix: issue widget attachment (#5820)
Browse files Browse the repository at this point in the history
* fix: issue widget attachment

* chore: comment added
  • Loading branch information
anmolsinghbhatia authored Oct 14, 2024
1 parent 701af73 commit 658542c
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
});

0 comments on commit 658542c

Please sign in to comment.