Exclude certain element from click.outside #3350
Shashank-Bhatt1
started this conversation in
4. General
Replies: 1 comment
-
It's either use |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Thanks for this awesome lightweight library.
I am trying to detect outside event with @click.outside and based on that I am dispatching some custom event at window level due to the fact that the div element where I need to do the operation is not inside the x-data. Everything is working fine.
I just have a small question. If i am clicking outside the element which I need to show also hides for which I have activated edit-mode.
This click event is in different part of body somewhere.
and here is the element which I need to show when edit mode is activated which is also at somewhere else.
Is there any way in which I can exclude the lower div with class excluding-element from emitting click outside so that clicking on edit mode doesn't close edit mode itself. :)
I saw somewhere that @click.stop would work but is this the best way to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions