diff --git a/frontend/src/components/listing/FileUpload.tsx b/frontend/src/components/listing/FileUpload.tsx index 0744602f..b74fe424 100644 --- a/frontend/src/components/listing/FileUpload.tsx +++ b/frontend/src/components/listing/FileUpload.tsx @@ -9,6 +9,7 @@ import { useRef, useState, } from "react"; +import { MouseEvent } from "react"; import { DropzoneOptions, DropzoneState, @@ -306,11 +307,7 @@ export const FileInput = forwardRef< const { dropzoneState, isFileTooBig } = useFileUpload(); const rootProps = dropzoneState.getRootProps(); - const handleClick = (e: React.MouseEvent) => { - if ((e.target as HTMLElement).closest("button")) { - e.stopPropagation(); - return; - } + const handleClick = (e: MouseEvent) => { rootProps.onClick?.(e); };