Skip to content
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

Custom kebab-case events can only be handled by camelCase handler when using v-on #3527

Closed
lanyizi opened this issue Apr 1, 2021 · 0 comments

Comments

@lanyizi
Copy link

lanyizi commented Apr 1, 2021

Version

3.0.10

Reproduction link

https://jsfiddle.net/wv4gL61c/6/

Steps to reproduce

When emitting an event like emit('kebab-case', arg), and listening events using v-on="object", the object.camelCase handler will be invoked. The object['kebab-case'] handler will never be invoked.
By clicking the buttons displayed in the reproduction link, we'll be able to see, that only handlers named in the camelCase way will be executed.

What is expected?

kebab-case handlers should be able to be executed.

What is actually happening?

kebab-case handlers are not being executed at all.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant