`inheritAttrs: false` does not work in a mixin
Version
3.0.11
Reproduction link
Steps to reproduce
- Click the 'Emit native event' button. This will dispatch an event from plain JS.
- Notice the alert 'There was a native event' appears. This means the listener on the Vue component was passed to the native element.
What is expected?
inheritAttrs: false
should be applied to MyComponent
because it has the mixin mixin
which sets inheritAttrs: false
.
What is actually happening?
The listener on MyComponent
is applied to the native element, so inheritAttrs: false
is not being applied.
I'm not sure why the SFC Playground link is so massive, but here is the same code in a GitHub repo: https://github.com/emccorson/issue_inherit-attrs-mixin