diff --git a/packages/react-dom/src/events/DOMEventResponderSystem.js b/packages/react-dom/src/events/DOMEventResponderSystem.js index 8ef3c42d55384..ce23eb5ad9d77 100644 --- a/packages/react-dom/src/events/DOMEventResponderSystem.js +++ b/packages/react-dom/src/events/DOMEventResponderSystem.js @@ -259,7 +259,7 @@ function handleTopLevelType( export function runResponderEventsInBatch( topLevelType: DOMTopLevelEventType, - targetFiber: Fiber, + targetFiber: null | Fiber, nativeEvent: AnyNativeEvent, nativeEventTarget: EventTarget, eventSystemFlags: EventSystemFlags, diff --git a/packages/react-dom/src/events/ReactDOMEventListener.js b/packages/react-dom/src/events/ReactDOMEventListener.js index 5591646b19807..1e1e67936f984 100644 --- a/packages/react-dom/src/events/ReactDOMEventListener.js +++ b/packages/react-dom/src/events/ReactDOMEventListener.js @@ -143,7 +143,7 @@ function handleTopLevel(bookKeeping: BookKeepingInstance) { nativeEvent, eventTarget, ); - } else if (enableEventAPI && targetInst !== null) { + } else if (enableEventAPI) { // Responder event system (experimental event API) runResponderEventsInBatch( topLevelType,