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.6.13] v-file-input rules uses Array value even when multiple prop is false or not specified #20247

Closed
Paul-DS opened this issue Jul 30, 2024 · 2 comments
Assignees
Labels
C: VFileInput T: bug Functionality that does not work as intended/expected
Milestone

Comments

@Paul-DS
Copy link

Paul-DS commented Jul 30, 2024

Environment

Vuetify Version: 3.6.13
Vue Version: 3.4.27
Browsers: Chrome 127.0.0.0
OS: Linux x86_64

Steps to reproduce

Create a v-file-input without multiple property. Add a validation rule.

Expected Behavior

The value passed to validation rules should be a File or null (to be consistent with the model value)

Actual Behavior

The value passed to validation rules is an array

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

I suppose #17687 fixed the same behavior on the model, but not on the rules

@wyhsunflower
Copy link
Contributor

Hi, I already work on this issue and will raise PR later.

@eeriksen
Copy link

eeriksen commented Oct 4, 2024

The model is still returning an empty array even though no multiple is specified (3.7.2).

@johnleider johnleider self-assigned this Feb 17, 2025
@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VFileInput and removed S: triage labels Feb 17, 2025
@johnleider johnleider added this to the v3.7.x milestone Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VFileInput T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

4 participants