-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
How to stop click event from bubbling? #161
Comments
Can you share a JSFiddle showing this behavior? |
I think it happens because of event delegation: all handlers are actually stored on some root node, and something like jQuery's |
yyx990803
pushed a commit
that referenced
this issue
Mar 7, 2014
Thanks, confirmed working for me. |
Closed
This was referenced Mar 15, 2014
So how to fix it in vue if I'm not using jquery |
@ggepenyan This closed issue is 5+ years old and is no longer an issue. Use |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For DOM tree like this:
clicking
#inside
triggersdoOut
too, despite ofevent.stopPropagation()
.What is the right way to prevent events in Vue?
The text was updated successfully, but these errors were encountered: