Replies: 4 comments 3 replies
-
Click.away triggers when the click event bubbles up to window. It should work even if there are other click directives involved as long as you don't stop the event. |
Beta Was this translation helpful? Give feedback.
-
Do you have any |
Beta Was this translation helpful? Give feedback.
-
no, there is no I prepared a codepen so it is easier to explain: https://codepen.io/flore89/pen/WNgzZPK
I hope my problem is clearer now. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Damn, I'm sorry, was searching for Please see updated codepen: https://codepen.io/flore89/pen/WNgzZPK When a megamenu is open, and I change to another one. It will not open anymore (on the first click). Guess that was why i had the Do you have a solution where both behaviours are possible? |
Beta Was this translation helpful? Give feedback.
-
Hi,
so I have a Megamenu toggle and a Search Modal toggle. They both have there own x-data and are not nested into each other.
Both elements close on @click.away. But if the Search Modal is open, and I click on the mega menu open trigger (@click). The search modal will no close, because the @click.away is not trigger when i click on the @click from the megamenu.
Is this behaviour a bug or is it intended? How would i go about solving it?
Beta Was this translation helpful? Give feedback.
All reactions