Skip to content

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

@lanyizi

Description

@lanyizi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions