vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] VFileInput prepend slot doesn't work

Open Aukemid opened this issue 5 years ago • 3 comments

Environment

Vuetify Version: 2.1.9 Vue Version: 2.6.10 Browsers: Chrome 78.0.3904.70 OS: Mac OS 10.15.1

Steps to reproduce

See reproduction link. Add a <template v-slot:prepend> to a <v-file-input>.

Expected Behavior

The set prepend slot should be used instead of the default value '$file' of the prepend-icon prop.

Actual Behavior

The prepend slot appears to be ignored completely.

Reproduction Link

https://codepen.io/Aukemid/pen/gOOXNGZ

Other comments

It seems impossible to use the prepend slot in a v-file-input. You can remove the default icon by giving the prepend-icon an empty string value, but setting a custom prepend slot has no effect. It does work for prepend-inner, append and append-outer.

Aukemid avatar Nov 05 '19 13:11 Aukemid

Still happening. For me I can use the v-slot:prepend-inner but I need to also add prepend-icon="".

Q: In my case I added a button as a v-slot:prepend but when I click on it no open dialog (trigger click on input) is showing. Is this part of the issue or a normal behavior?

PabloRN avatar Apr 29 '20 08:04 PabloRN

Still a problem..... :(

pate313373 avatar May 27 '21 10:05 pate313373

Any status on this @johnleider ? Still a problem in 2.6.10

jonatan-mobal avatar Oct 19 '22 13:10 jonatan-mobal

This bug still persists in vuetify 3.2.1 in the following form:

Steps to reproduce:

Add a <template v-slot:prepend> <v-icon> {{ some icon }} </v-icon></template> to a <v-file-input>.

Expected outcome:

Icon inside the v-slot:prepend should replace the default prepend icon.

Actual outcome:

The v-slot:prepend icon is placed next to the default prepend icon (both are visible).

Reproduction link:

play.vuetifyjs.com

Other comments:

The prepend slot is referenced in the documentation.

Inasyah avatar Apr 28 '23 18:04 Inasyah

This is still an issue in 2.6.15. Is there a fix for this issue that is planned on being released? @johnleider

jlucloran avatar May 01 '23 16:05 jlucloran