Skip to content
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

Event propogation before component is created and conditional rendering #9615

Closed
lucpotage opened this issue Mar 4, 2019 · 1 comment
Closed

Comments

@lucpotage
Copy link

Version

2.6.8

Reproduction link

https://codesandbox.io/s/wwoxp636jk

Steps to reproduce

Add a click listener on window in a child component

What is expected?

Before Vue 2.6, the click event was not propagated to the child component because it was not created yet.

What is actually happening?

The click event is now propagated to the child after it is created and mounted.


Do I need now to explicitly add the modifier .stop to all my parent click events if I add click listeners on window in my child components?

@posva
Copy link
Member

posva commented Mar 4, 2019

Duplicate of #9340
Also see #9478 and #9464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants