Allow for null targetFiber for root event handling (#15247)

This commit is contained in:
Dominic Gannaway
2019-03-28 21:43:19 -07:00
committed by GitHub
parent c6f3524df5
commit 5d336df706
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ function handleTopLevelType(
export function runResponderEventsInBatch(
topLevelType: DOMTopLevelEventType,
targetFiber: Fiber,
targetFiber: null | Fiber,
nativeEvent: AnyNativeEvent,
nativeEventTarget: EventTarget,
eventSystemFlags: EventSystemFlags,
+1 -1
View File
@@ -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,