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
When templates are compiled at runtime, kebab-cased event names specified in emits don't prevent event listeners from being passed down via $attrs
#2541
Closed
marzelin opened this issue
Nov 2, 2020
· 1 comment
Version
3.0.2
Reproduction link
https://codesandbox.io/s/reverent-wiles-u85ur?file=/src/main.js:140-160
Steps to reproduce
Having the code from the reproduction link:
click the log $attrs button to log
this.$attrs
.What is expected?
this.$attrs
should be empty since according to the docs placing event name inemits
should prevent a listener for the event to fallthrough.What is actually happening?
this.$attrs
containsonMyEvent
listener which meansemits
doesn't block it from being passed down.Note: everything works as expected when templates are precompiled.
The text was updated successfully, but these errors were encountered: