You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems event names are transformed to camelCase before reaching the component, resulting in an error:
Extraneous non-emits event listeners (selectResult) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.
What is expected?
Event name should be kept as is camelCase
What is actually happening?
Event name is transformed to camelCase
The text was updated successfully, but these errors were encountered:
biesbjerg
changed the title
Component event is transformed to kebabCase
Component events are transformed to camelCase
Nov 19, 2020
Version
3.0.2
Steps to reproduce
It is recommended to emit
kebab-case
events from components (per v3 docs and eslint vue/custom-event-name-casing rule).The component:
This is how it is used in a component:
It seems event names are transformed to
camelCase
before reaching the component, resulting in an error:Extraneous non-emits event listeners (selectResult) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.
What is expected?
Event name should be kept as is
camelCase
What is actually happening?
Event name is transformed to
camelCase
The text was updated successfully, but these errors were encountered: