Skip to content

Commit

Permalink
Fix file input uploads (#3452)
Browse files Browse the repository at this point in the history
## Problem solved

Short description of the bug fixed or feature added

## Changes made

- [ ] Public API changes: list the public API changes made if any
- [ ] Internal API changes: explain the internal logic changes

## How to test

- [ ] Automated tests: link to unit test file
- [ ] Manual tests: step by step instructions on how to test

## Contributor NFT

Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.

```Address: ```

<!-- start pr-codex -->

---

## PR-Codex overview
This PR removes the `onClick` event listener from a `FileInput` component in the dashboard app.

### Detailed summary
- Removed `onClick` event listener from `FileInput.tsx` component in the dashboard app.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
kien-ngo committed Jun 22, 2024
1 parent ab46023 commit e743489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/shared/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const FileInput: React.FC<IFileInputProps> = ({
direction="row"
align="center"
{...getRootProps()}
onClick={(e) => e.stopPropagation()}
// onClick={(e) => e.stopPropagation()}
>
<input {...getInputProps()} />
{showPreview && (
Expand Down

0 comments on commit e743489

Please sign in to comment.