Multiple clickOutside .bubble
conflict with each other
#3823
Unanswered
mrleblanc101
asked this question in
Q&A
Replies: 1 comment
-
Hey, I solved this with the following code:
But with this it seems that I have to create a new function for every onClickOutside element. At least I haven't find the solution for that yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have a button that open a dropdown.
If I clickOutside, it close the dropdown, good.
If I click the button to toggle the open state, both clickOutside and the toggle function gets called, so the dropdown close and re-open, bad.
That's where the
.buddle
and@click.stop
comes into play.But if you have multiple dropdown with
.bubble
and@click.stop
, they cancel each other so when you open a second dropdown, the first dropdown will stay open because of the.stop
.How do I solve this ?
Beta Was this translation helpful? Give feedback.
All reactions