We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39a9b33 commit 5d60825Copy full SHA for 5d60825
src/packages/uploader/uploader.tsx
@@ -359,7 +359,7 @@ const InternalUploader: ForwardRefRenderFunction<
359
beforeUpload(new Array<File>().slice.call(files)).then(
360
(f: Array<File> | boolean) => {
361
const _files: File[] = filterFiles(new Array<File>().slice.call(f))
362
- if (!_files) $el.value = ''
+ if (!_files.length) $el.value = ''
363
readFile(_files)
364
}
365
)
0 commit comments