Fix scope issue (#19434)

This commit is contained in:
Dominic Gannaway
2020-07-22 23:05:50 +01:00
committed by GitHub
parent 125d1a19a2
commit 30e3cfe406
+2 -1
View File
@@ -778,7 +778,8 @@ export function accumulateSinglePhaseListeners(
enableCreateEventHandleAPI &&
enableScopeAPI &&
tag === ScopeComponent &&
lastHostComponent !== null
lastHostComponent !== null &&
stateNode !== null
) {
const reactScopeInstance = stateNode;
const eventHandlerlisteners = getEventHandlerListeners(