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] Double click on dropdown menu with a disabled list-item triggers click event on that list-item #12021

Closed
sbarlabanov opened this issue Aug 7, 2020 · 1 comment · Fixed by #12059
Assignees
Labels
C: VList VList T: bug Functionality that does not work as intended/expected
Milestone

Comments

@sbarlabanov
Copy link

Environment

Vuetify Version: 2.3.1
Vue Version: 2.6.11
Browsers: Safari 13.1.1
OS: Mac OS 10.14.6

Steps to reproduce

Make a double-click on the bottom half of "Dropdown" button.

Expected Behavior

No click event is trigger. No click listener of the disabled list-item is called.

Actual Behavior

onClick handler of the first contained item is called despite that it is disabled.

Reproduction Link

https://codepen.io/sbarlabanov/pen/dyMPeMp

Other comments

This happens when the menu items are shown over the button (like in the example), which may always happen depending on the window size and layout. Seems like the second click is captured by the list-item despite "pointer-events: none".

@ghost ghost added the S: triage label Aug 7, 2020
@KaelWD
Copy link
Member

KaelWD commented Aug 7, 2020

Reproduced in chrome 83 and firefox 79 on linux.

@KaelWD KaelWD added C: VList VList T: bug Functionality that does not work as intended/expected and removed S: triage labels Aug 7, 2020
YipingRuan added a commit that referenced this issue Aug 16, 2020
@KaelWD KaelWD added this to the v2.3.x milestone Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VList VList T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants