-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
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.