-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kebab-case events are attached as lower case on web components #2841
Comments
That's because the kebab-case custom event |
Thanks for the quick catch/solve! Hopefully it gets into the next release. |
What is the state of this PR ? |
Same here. I'm using Shoelace webcomponents with the current Vue 3.0.5 and can't catch events like |
As a workaround you can replace |
@recamshak Didn't know about that syntax, it's working, thanks! |
Version
3.0.4
Reproduction link
https://jsfiddle.net/meo9Lfya/3/
Steps to reproduce
What is expected?
The text to the right of the buttons should change to "Clicked kebab"
What is actually happening?
The text to the right of the buttons doesn't change
To confirm it was an issue with vue binding to the event, I added a "Mount Native Event Listeners" - if you click this button, it'll attach event listeners using addEventListener - and the buttons will both work as expected.
Note - this is utilizing vue 3.0.4, but I was seeing the same issue in 3.0.2 in my project, which relies on Vite.
Also - might be similar to: #2429 - however it's happening on newer versions of Vue...
The text was updated successfully, but these errors were encountered: