Merge pull request #2950 from Bima42/fix/2949-upload-in-dropzone-two-times-in-a-row

fix: clear input value after uploading file in dropzone
This commit is contained in:
Mauricio Siu
2025-11-08 14:20:46 -06:00
committed by GitHub

View File

@@ -67,9 +67,10 @@ export const Dropzone = React.forwardRef<HTMLDivElement, DropzoneProps>(
ref={inputRef}
type="file"
className={cn("hidden", className)}
onChange={(e: ChangeEvent<HTMLInputElement>) =>
onChange(e.target.files)
}
onChange={(e: ChangeEvent<HTMLInputElement>) => {
onChange(e.target.files);
e.target.value = "";
}}
/>
</div>
</CardContent>