@samitouri / QOS-React-2 / commits / 30e3cfe406

Fix scope issue (#19434)

Dominic Gannaway committed Jul 22, 2020 at 23:05 UTC 30e3cfe40679f2247179bfe54f4768f2cbbc8161
1 file changed +2 -1
packages/react-dom/src/events/DOMPluginEventSystem.js
+2 -1
@@ -778,7 +778,8 @@ export function accumulateSinglePhaseListeners(
778 enableCreateEventHandleAPI &&
779 enableScopeAPI &&
780 tag === ScopeComponent &&
781 - lastHostComponent !== null
781 + lastHostComponent !== null &&
782 + stateNode !== null
783 ) {
784 const reactScopeInstance = stateNode;
785 const eventHandlerlisteners = getEventHandlerListeners(