kobalte
kobalte copied to clipboard
`FileField`'s `maxFiles` limits only amount of files added at once
Describe the bug
maxFiles limits only amount of files added with single selection
To Reproduce Steps to reproduce the behavior:
- Make
<FileField multiple maxFiles={1}> ... - Add two files at once - rejects both
- Add one file
- Add another file
- Now you have two files (over limit 1)
Expected behavior
maxFiles should limit max amount of files added, not just with single selection.
Also probably shouldn't reject all of them when selecting more than maxFiles, maybe should accept just enough to fill this amount.