@@ -155,7 +155,12 @@ export function dispatchEvent(
155155 return ;
156156 }
157157
158- let blockedOn = findInstanceBlockingEvent ( nativeEvent ) ;
158+ let blockedOn = findInstanceBlockingEvent (
159+ domEventName ,
160+ eventSystemFlags ,
161+ targetContainer ,
162+ nativeEvent ,
163+ ) ;
159164 if ( blockedOn === null ) {
160165 dispatchEventForPluginEventSystem (
161166 domEventName ,
@@ -193,7 +198,12 @@ export function dispatchEvent(
193198 if ( fiber !== null ) {
194199 attemptSynchronousHydration ( fiber ) ;
195200 }
196- const nextBlockedOn = findInstanceBlockingEvent ( nativeEvent ) ;
201+ const nextBlockedOn = findInstanceBlockingEvent (
202+ domEventName ,
203+ eventSystemFlags ,
204+ targetContainer ,
205+ nativeEvent ,
206+ ) ;
197207 if ( nextBlockedOn === null ) {
198208 dispatchEventForPluginEventSystem (
199209 domEventName ,
@@ -230,6 +240,9 @@ export let return_targetInst: null | Fiber = null;
230240// Returns a SuspenseInstance or Container if it's blocked.
231241// The return_targetInst field above is conceptually part of the return value.
232242export function findInstanceBlockingEvent (
243+ domEventName : DOMEventName ,
244+ eventSystemFlags : EventSystemFlags ,
245+ targetContainer : EventTarget ,
233246 nativeEvent : AnyNativeEvent ,
234247) : null | Container | SuspenseInstance {
235248 // TODO: Warn if _enabled is false.
0 commit comments