You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the regular bubbling and capture event listener should be added to the element and the handler functions should be called when the event is triggered.
What is actually happening?
The bubbling event listener works fine but the capturing event listener throws an error when triggered and the handler for it doesn't get called.
Here is how you would do this in Vue 2 in a render function:
The text was updated successfully, but these errors were encountered:
janispritzkau
changed the title
Bubbling and capturing event listener of the same event type on element
Bubbling and capturing event listeners of the same event type on a element
Jul 11, 2020
janispritzkau
changed the title
Bubbling and capturing event listeners of the same event type on a element
Can't have bubbling and capturing event listeners of the same event type on a element
Jul 12, 2020
Version
3.0.0-beta.20
Reproduction link
https://jsfiddle.net/janispritzkau/f4wdbm3r/17/
Steps to reproduce
Click on the element and check the console.
What is expected?
Both the regular bubbling and capture event listener should be added to the element and the handler functions should be called when the event is triggered.
What is actually happening?
The bubbling event listener works fine but the capturing event listener throws an error when triggered and the handler for it doesn't get called.
Here is how you would do this in Vue 2 in a render function:
The Vue 3 template compiler does something like this:
The text was updated successfully, but these errors were encountered: