-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report][3.3.5] v-file-input model gives an array when "multiple" attribute isn't set and when it's set to false #17687
Comments
The obvious workaround is getting the first element from the array... but as the multiple feature is not explicitly requested, it's not desirable to deal with an array. Thanks in advance. |
The issue still shows up in Vuetify version 3.3.6. |
still exists in v3.4.0-beta.0 |
still exists in 在vuetify": "^3.4.9 |
still in 3.5.1 |
I just upgraded to 3.5.10 and noticed this behavior is fixed now. (The fix broke my code because I was still treating it like an array!) |
When "multiple" is not specified or is set to false, vuetify will now pass a file object instead of an array of file objects. See for example vuetifyjs/vuetify#17687
When "multiple" is not specified or is set to false, vuetify will now pass a file object instead of an array of file objects. See for example vuetifyjs/vuetify#17687 Co-authored-by: Jan <55805868+Jaydee94@users.noreply.github.com>
Environment
Vuetify Version: 3.3.5
Vue Version: 3.3.4
Browsers: Chrome 114.0.0.0
OS: Windows 10
Steps to reproduce
Expected Behavior
The file object must be returned immediately without being inside an array.
Actual Behavior
The file object is returned inside an array.
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: