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