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 8dd45a7 commit b25ac12Copy full SHA for b25ac12
src/useCSVReader.tsx
@@ -198,6 +198,7 @@ function useCSVReaderComponent<
198
const openFileDialog = useCallback(() => {
199
if (inputRef.current && state.displayProgressBar) {
200
dispatch({ type: 'openDialog' });
201
+ inputRef.current.value = '';
202
inputRef.current.files = null;
203
inputRef.current.click();
204
}
@@ -605,6 +606,7 @@ function useCSVReaderComponent<
605
606
607
const removeFileProgrammaticallyCb = useCallback((event: Event) => {
608
if (inputRef.current) {
609
610
611
612
dispatch({ type: 'reset' });
0 commit comments