We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47c4ffb commit 90c3532Copy full SHA for 90c3532
packages/runtime-dom/src/modules/events.ts
@@ -128,7 +128,8 @@ function createInvoker(
128
// the solution is simple: we save the timestamp when a handler is attached,
129
// and the handler would only fire if the event passed to it was fired
130
// AFTER it was attached.
131
- if (e.timeStamp >= invoker.lastUpdated - 1) {
+ const timeStamp = e.timeStamp || _getNow()
132
+ if (timeStamp >= invoker.lastUpdated - 1) {
133
callWithAsyncErrorHandling(
134
patchStopImmediatePropagation(e, invoker.value),
135
instance,
0 commit comments