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.5.4] VFileInput: @click:prepend, prepend-inner and append-inner also trigger @click:control #19232

Closed
HtheChemist opened this issue Feb 15, 2024 · 3 comments
Assignees
Labels
C: VFileInput T: bug Functionality that does not work as intended/expected

Comments

@HtheChemist
Copy link

Environment

Vuetify Version: 3.5.4
Vue Version: 3.4.15
Browsers: Firefox 122.0
OS: Windows 10

Steps to reproduce

Clicking on each icon.
@click:append does not trigger @click:control but the three others do.

Expected Behavior

Each icon slot should behave similarly (either triggering the control or not)

Actual Behavior

3 out of 4 icon slot trigger @click:control but one does not.

Reproduction Link

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

Other comments

Similar to #17406 and #16678.

However, I believe that this behavior should either be documented or normalized.

@johnleider johnleider self-assigned this Feb 15, 2024
@johnleider johnleider added C: VFileInput T: bug Functionality that does not work as intended/expected and removed S: triage labels Feb 15, 2024
VIXI0 pushed a commit to VIXI0/vuetify that referenced this issue Mar 13, 2024
@ramseyfeng
Copy link

Although the @click:control won't be emitted, the menu options will still be opened.
Is there any way we can use preventDefault to avoid the menu options to be opened when user click the append-inner icon.

@lukke1603
Copy link

@ramseyfeng did you find a solution for this particular behaviour? I am also struggling with this problem

@ramseyfeng
Copy link

@lukke1603 I would suggest you use the append icon instead of using the append-inner icon.
example

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