How to listen to custom element events in Vue? #6521
Unanswered
shadow-light
asked this question in
Help/Questions
Replies: 1 comment
-
found a workaround that works for me (the eventListener in onMounted didn't work eather in my case) that's simple einough for my usecase to be accepted, but I think it could be better supported by vuejs ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using custom elements (specifically Material Web Components) but I can't figure out how to listen to events from custom elements using the usual
v-on
syntax.The following doesn't work:
Where as this does:
Does Vue only listen to native events rather than custom ones when it thinks it is a native element (but actually a custom element)?
(already asked on Stack Overflow)
Beta Was this translation helpful? Give feedback.
All reactions