Skip to content
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

Closed
vessi-devs opened this issue Jun 24, 2023 · 7 comments
Assignees
Labels
C: VFileInput T: enhancement Functionality that enhances existing features
Milestone

Comments

@vessi-devs
Copy link

Environment

Vuetify Version: 3.3.5
Vue Version: 3.3.4
Browsers: Chrome 114.0.0.0
OS: Windows 10

Steps to reproduce

  • Run the reproduction link.
  • Put any file into the v-file-input.
  • Its v-model will change to an array value. Its first element will be the expected file object.

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/#...

@vessi-devs
Copy link
Author

vessi-devs commented Jun 24, 2023

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.

@vessi-devs
Copy link
Author

vessi-devs commented Jun 30, 2023

The issue still shows up in Vuetify version 3.3.6.

@umutcantopal
Copy link

still exists in v3.4.0-beta.0

@dkl520
Copy link

dkl520 commented Jan 11, 2024

still exists in 在vuetify": "^3.4.9

@orieuxe
Copy link

orieuxe commented Jan 24, 2024

still in 3.5.1

@bontrager-dev
Copy link

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!)

@KaelWD
Copy link
Member

KaelWD commented May 22, 2024

Fixed by 581bbbc and edd311f

@KaelWD KaelWD marked this as a duplicate of #19297 May 22, 2024
@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
@KaelWD KaelWD added the duplicate The issue has already been reported label May 22, 2024
@KaelWD KaelWD added T: enhancement Functionality that enhances existing features C: VFileInput and removed duplicate The issue has already been reported labels May 22, 2024
@KaelWD KaelWD closed this as completed May 22, 2024
@KaelWD KaelWD added this to the v3.5.x milestone May 22, 2024
@KaelWD KaelWD marked this as not a duplicate of #19297 May 22, 2024
FSchumacher added a commit to FSchumacher/kubeseal-webgui that referenced this issue Oct 2, 2024
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
Jaydee94 added a commit to Jaydee94/kubeseal-webgui that referenced this issue Oct 3, 2024
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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VFileInput T: enhancement Functionality that enhances existing features
Projects
None yet
Development

No branches or pull requests

7 participants