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
<sl-menu-item disabled>
triggers click/tap events
#1113
Comments
<sl-menu-item disabled>
triggers events<sl-menu-item disabled>
still triggers events
Fixed playground link in |
<sl-menu-item disabled>
still triggers events<sl-menu-item disabled>
triggers click/tap events
@claviska – still an issue with |
Fixed in b8695b7. I also updated |
@yao-motif - |
I investigated this further and realized that even attaching the listener in the constructor isn't a reliable way to prevent retargeted clicks on the host element. The reason it "works" for As for I suggest checking for the |
that's what i ended up doing, and it works well, thank you for investigating! |
Describe the bug
<sl-menu-item disabled>
is ignored. Tested in versions.88
→.61
(likely goes further past).To Reproduce
Steps to reproduce the behavior:
<sl-menu-item disabled>
is ignored!Built-in
orShoelace
buttons<⋯ disabled>
prevents event.Demo
See above.
Screenshots
N/A.
Browser / OS
Additional information
Discovered while adding support for
<sl-menu-item inert>
in #1107 (comment)The text was updated successfully, but these errors were encountered: