Skip to content

Commit 60a277c

Browse files
committed
chore: update comment
1 parent ba0ebd4 commit 60a277c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/platforms/web/runtime/modules/events.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ function add (
4646
passive: boolean
4747
) {
4848
// async edge case #6566: inner click event triggers patch, event handler
49-
// attached to outer element during patch, and triggered again. This only
50-
// happens in Chrome as it fires microtask ticks between event propagation.
49+
// attached to outer element during patch, and triggered again. This
50+
// happens because browsers fire microtask ticks between event propagation.
5151
// the solution is simple: we save the timestamp when a handler is attached,
5252
// and the handler would only fire if the event passed to it was fired
5353
// AFTER it was attached.

0 commit comments

Comments
 (0)