vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.64k stars 6.95k forks source link

[Bug Report][3.6.13] v-file-input rules uses Array value even when `multiple` prop is false or not specified #20247

Open Paul-DS opened 1 month ago

Paul-DS commented 1 month ago

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 commented 1 month ago

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