-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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.4.3] @Click on v-chip in v-file-dialog not working #18638
Comments
Workaround for now: <v-chip closable link @click:close="() => files.splice(index, 0)">{{fileName}}</v-chip>
<style>
.v-file-input {
.v-field__input {
z-index: 1000001;
}
.v-chip__content {
cursor: initial;
}
.chip__close {
cursor: pointer;
}
}
</style> |
Maybe reopen since its a bug? |
@KaelWD Could you please take a look? |
@thieleju solution prevent v-file-input from drag and drop file |
Better workaround that does not prevent drag&drop: .v-file-input {
.v-field__input {
z-index: 1;
pointer-events: none;
.v-chip {
pointer-events: all;
}
}
} But it also requires dragging detection in case user drops the file when pointing directly to the chip closing icon. I don't think it is a bug. None of the example in docs show closable chips. It's just the limitation of current implementation. And actual support for this feature would rather be an enhancement. It could come with But assuming, we get it implemented, I worry about actual usability. Misclicking is very easy and opens the system file dialog... annoying... unless we move the invisible |
Environment
Vuetify Version: 3.4.3
Last working version: 2.7.0
Vue Version: 3.3.8
Browsers: Chrome 119.0.0.0
OS: Windows 10
Steps to reproduce
Generate element with @click in selection slot of v-file-input
https://play.vuetifyjs.com/#eNqVUkFOwzAQ/MrKHJJKNEHAAaGA4MIRIa5tDybdgFXHtmw3FYryd9Z20zYgJDjZHs+Md2e96JmzdfloTNFtkd2yymNrJPd4v1QAVTfnxsRtPNRaeS4U2j0UwUZInAtlth66eavXKO+WLIBuyeDWIl9rJT8JG7dLdpCTwfggnDmUWHuhFXF7CA7PvEUHw0RAkrXo6KlG2/1DgQZCHSXfBKn2D2HgoZai3pAsrlRfLbXjbxJBCrW57/vRYhiqMmn+5HT5f6uqpDZOgygn0SfoNF2CT1J3O+Hrj5PEj+mC5G8Rmszm9Zh+8E36cbShwMlsA5JGP6mLjq62wnhw6LepIdEabT30YLGBARqrW8joN2Xhklydj4NxcBcY+ULhDp4IyBerc8g8Oh+us9lqlhpMkrGdvarh0uGe0GxV/CaUOEWfz6BPXXCJ1udZRDPiAv2cH/TLHDtU/iCKp8J5bV6sNvydB2oe1b84VmWKgJpnwzm7Kq6KGxbW6+KCrb4AB54TAA==
Expected Behavior
trigger click of element inside slot
Actual Behavior
triggers click of v-file-dialog
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: