diff --git a/packages/react/src/Uploader.tsx b/packages/react/src/Uploader.tsx index d8e99487..4b0f2427 100644 --- a/packages/react/src/Uploader.tsx +++ b/packages/react/src/Uploader.tsx @@ -182,7 +182,7 @@ export const UploaderRoot: Component = createComponent( uploadProgress }, { - setFile: (file?: File) => { setFilesAndReset((file != null) && [file]) }, + setFile: (file?: File) => { setFilesAndReset((file === undefined) ? file : [file]) }, setFiles: setFilesAndReset } ],