Custom kebab-case events can only be handled by camelCase handler when using v-on
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.