mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
chore: update comment
This commit is contained in:
parent
ba0ebd4771
commit
60a277ca31
@ -46,8 +46,8 @@ function add (
|
|||||||
passive: boolean
|
passive: boolean
|
||||||
) {
|
) {
|
||||||
// async edge case #6566: inner click event triggers patch, event handler
|
// async edge case #6566: inner click event triggers patch, event handler
|
||||||
// attached to outer element during patch, and triggered again. This only
|
// attached to outer element during patch, and triggered again. This
|
||||||
// happens in Chrome as it fires microtask ticks between event propagation.
|
// happens because browsers fire microtask ticks between event propagation.
|
||||||
// the solution is simple: we save the timestamp when a handler is attached,
|
// the solution is simple: we save the timestamp when a handler is attached,
|
||||||
// and the handler would only fire if the event passed to it was fired
|
// and the handler would only fire if the event passed to it was fired
|
||||||
// AFTER it was attached.
|
// AFTER it was attached.
|
||||||
|
Loading…
Reference in New Issue
Block a user