Skip to content

sl-show and sl-after-show dialogs events occurring multiple times when hovering over sl-copy-button #2150

Answered by claviska
steunix asked this question in Help
Discussion options

You must be logged in to vote

It's likely you're seeing the events from the copy button's tooltip. This is a common pitfall of events, as they're not unique to the component (think of how the standard click event works).

I've written about this and suggested some ways to solve it in this post:

https://www.abeautifulsite.net/posts/custom-event-names-and-the-bubbling-problem/

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by steunix
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bug Things that aren't working right in the library.
2 participants
Converted from issue

This discussion was converted from issue #2148 on August 27, 2024 14:24.