File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export interface AppConfig {
81
81
instance : ComponentPublicInstance | null ,
82
82
trace : string
83
83
) => void
84
+ skipEventsTimestampCheck : boolean
84
85
85
86
/**
86
87
* Options to pass to `@vue/compiler-dom`.
@@ -155,7 +156,8 @@ export function createAppContext(): AppContext {
155
156
optionMergeStrategies : { } ,
156
157
errorHandler : undefined ,
157
158
warnHandler : undefined ,
158
- compilerOptions : { }
159
+ compilerOptions : { } ,
160
+ skipEventsTimestampCheck : false
159
161
} ,
160
162
mixins : [ ] ,
161
163
components : { } ,
Original file line number Diff line number Diff line change @@ -117,7 +117,10 @@ function createInvoker(
117
117
// AFTER it was attached.
118
118
const timeStamp = e . timeStamp || _getNow ( )
119
119
120
- if ( skipTimestampCheck || timeStamp >= invoker . attached - 1 ) {
120
+ // Skip the timestamp check if the skipEventsTimestampCheck app config is set to true.
121
+ const appSkipTimestampCheck = instance ?. appContext ?. config . skipEventsTimestampCheck === true
122
+
123
+ if ( appSkipTimestampCheck || skipTimestampCheck || timeStamp >= invoker . attached - 1 ) {
121
124
callWithAsyncErrorHandling (
122
125
patchStopImmediatePropagation ( e , invoker . value ) ,
123
126
instance ,
You can’t perform that action at this time.
0 commit comments