We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b16a1d9 commit bf77afdCopy full SHA for bf77afd
src/components/dropzone/components/Dropzone/Dropzone.tsx
@@ -354,6 +354,11 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
354
remainingValids,
355
localValidator
356
);
357
+ // Clean input element to trigger onChange event on input
358
+ let element: HTMLInputElement | null = inputRef.current;
359
+ if (element) {
360
+ element.value = "";
361
+ }
362
handleFilesChange(output);
363
};
364
// validator
0 commit comments