You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking on the component and selecting a file adds it to the acceptedFiles list, instead of replacing it. This leads to inconsistent state between what is actually contained in the hidden input and the acceptedFiles list.
💥 Steps to reproduce
click on Choose file(s) and select one or more files
the selected file(s) gets listed
click on Choose file(s) again and select one or multiple other files
the previously selected file(s) and the newly selected file(s) get listed
submit the form
only the last selected file(s) gets submitted (see server log)
Either acceptedFiles gets replaced with selected files everytime you select files; or selected files get somehow appended to the hidden input instead of replacing them.
🧭 Possible Solution
🌍 System information
Software
Version(s)
Zag Version
^0.78.3
Browser
Firefox 133.0.3, Chrome 131.0.6778.140
Operating System
Windows 22631.4602
📝 Additional information
The text was updated successfully, but these errors were encountered:
🐛 Bug report
When clicking on the component and selecting a file adds it to the
acceptedFiles
list, instead of replacing it. This leads to inconsistent state between what is actually contained in the hidden input and theacceptedFiles
list.💥 Steps to reproduce
Choose file(s)
and select one or more filesChoose file(s)
again and select one or multiple other files💻 Link to reproduction
CodeSandbox reproduction: https://codesandbox.io/p/devbox/lucid-maxwell-sm56jj
🧐 Expected behavior
Either acceptedFiles gets replaced with selected files everytime you select files; or selected files get somehow appended to the hidden input instead of replacing them.
🧭 Possible Solution
🌍 System information
📝 Additional information
The text was updated successfully, but these errors were encountered: