Skip to content

Commit 30e3cfe

Browse files
authored
Fix scope issue (facebook#19434)
1 parent 125d1a1 commit 30e3cfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-dom/src/events/DOMPluginEventSystem.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,8 @@ export function accumulateSinglePhaseListeners(
778778
enableCreateEventHandleAPI &&
779779
enableScopeAPI &&
780780
tag === ScopeComponent &&
781-
lastHostComponent !== null
781+
lastHostComponent !== null &&
782+
stateNode !== null
782783
) {
783784
const reactScopeInstance = stateNode;
784785
const eventHandlerlisteners = getEventHandlerListeners(

0 commit comments

Comments
 (0)