Skip to content

v-on event listener name mangling nuanceΒ #3127

Open
@noellelevydialpad

Description

- A `v-on` event listener like `@click` will be exposed on the object as a function under `$attrs.onClick`.

This does not make it entirely clear that the conventional kebab casing of event names would be camel cased i.e. @my-event would result in an attr named onMyEvent.
And it also does not document how any uppercase letter makes it simply prefix on: to the name with no transform, like @My-event yields on:My-event

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