From e7434891354f351d2a399daebdddae9cf1fc817b Mon Sep 17 00:00:00 2001 From: kien-ngo <26052673+kien-ngo@users.noreply.github.com> Date: Sat, 22 Jun 2024 16:22:53 +0000 Subject: [PATCH] Fix file input uploads (#3452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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: ``` --- ## 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}` --- apps/dashboard/src/components/shared/FileInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/components/shared/FileInput.tsx b/apps/dashboard/src/components/shared/FileInput.tsx index 4c66cb3ec91..90f9ea146d3 100644 --- a/apps/dashboard/src/components/shared/FileInput.tsx +++ b/apps/dashboard/src/components/shared/FileInput.tsx @@ -119,7 +119,7 @@ export const FileInput: React.FC = ({ direction="row" align="center" {...getRootProps()} - onClick={(e) => e.stopPropagation()} + // onClick={(e) => e.stopPropagation()} > {showPreview && (