Skip to content

.once doesn't go well with .self #4846

@powelski

Description

@powelski

Consider following element:

<div @click.self.once="eat">Eat <span>me</span></div>

If we click on "Eat" word, everything works as expected. The event is being fired once and we are happy.

But if we click on "me", which is child node, and then we click on "Eat", the event will never be fired! It seems like .once is too easy on judging an event as fired.

I think .once should mark it as done only if it has been fired in fact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions