-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
Hi
The handleChange callback is currently typed as:
File | File[] | File
But the native onChange actually returns:
File | FileList
So when selecting multiple files, the value is a FileList, not a File[].
For example:
Array.isArray(files) // false
files instanceof FileList // true
Expected:
The type should be File | FileList.
kamiranoff, palyvodaBoi and Schweizer-Philipp
Metadata
Metadata
Assignees
Labels
No labels