A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/4846 below:

.once doesn't go well with .self · Issue #4846 · vuejs/vue · GitHub

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4