Skip to content

fix(VFileUpload): apply width props only to the input - #23327

Merged
J-Sek merged 3 commits into
vuetifyjs:masterfrom
dilipsaroj:fix/file-upload-double-width
Oct 28, 2026
Merged

J-Sek merged 3 commits into
vuetifyjs:masterfrom
dilipsaroj:fix/file-upload-double-width

Conversation

@dilipsaroj

@dilipsaroj dilipsaroj commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

fixes #23324

VFileUpload passes its props to both VInput and VFileUploadDropzone. Both accept width, minWidth and maxWidth (VInput picks them from the dimension props, the dropzone gets them through VSheet), so the size was applied twice: with width="80%" the input was 80% of its container and the dropzone was 80% of that. Pixel values looked fine because applying them twice gives the same result.

The dimension props now only go to VInput, and the dropzone fills it.

Added a browser spec that checks the input and the dropzone widths for width / max-width with percentage and pixel values, and with inset-file-list. The percentage cases fail without the change.

@J-Sek
J-Sek merged commit 542cd68 into vuetifyjs:master Oct 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report][4.3.1] v-file-upload strange width behavior

2 participants