Skip to content

v-on:click with target not in the correct element? #2236

@cnicodeme

Description

@cnicodeme

Hi,

I have a template like :

<a v-on:click="action($event)">
    <span>entry 1</span>
    <span>entry 2</span>
</a>

and the event.target in action is either the first or second span, never the a.
Using jQuery, I know .target is always the intended (listened) element.

Is this not the case here or is there an issue?

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