vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.68k stars 8.33k forks source link

Problem with camelCased event names on WebComponents (CustomElements) #6077

Closed nosfair-fma closed 2 years ago

nosfair-fma commented 2 years ago

Vue version

3.2.37

Link to minimal reproduction

https://github.com/nosfair-fma/nuxt3-stencil-interop

Steps to reproduce

What is expected?

What is actually happening?

since i was not able to find any information about naming restrictions (quite the opposite, camelCase event names seem to be standard, widely used and even advertised on the respective vue documentation), i consider this a bug

System Info

System:
    OS: Linux 5.13 elementary OS 6.1 Jólnir
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 23.09 GB / 31.16 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash

Any additional comments?

lidlanca commented 2 years ago

check if this may be related https://github.com/vuejs/core/issues/5401

if it is, there are work arounds suggested in comments.

nosfair-fma commented 2 years ago

yes, the workaround with the custom directive seems to work fine - thank you! :)