Vue 3 + Web Components: @update:open not working while addEventListener does #13702
Unanswered
yinfoyuan
asked this question in
Help/Questions
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m trying to use a Web Component in a Vue 3 (<script setup>) project, but I’m facing an issue where the event listener defined via @update:open="handlerOpen" in the template is not triggered , while using addEventListener('update:open', handlerOpen) works as expected.
Here’s the code snippet:
"vue": "^3.5.17"
"vite": "^7.0.4",
Beta Was this translation helpful? Give feedback.
All reactions