mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix scope issue (#19434)
This commit is contained in:
+2
-1
@@ -778,7 +778,8 @@ export function accumulateSinglePhaseListeners(
|
||||
enableCreateEventHandleAPI &&
|
||||
enableScopeAPI &&
|
||||
tag === ScopeComponent &&
|
||||
lastHostComponent !== null
|
||||
lastHostComponent !== null &&
|
||||
stateNode !== null
|
||||
) {
|
||||
const reactScopeInstance = stateNode;
|
||||
const eventHandlerlisteners = getEventHandlerListeners(
|
||||
|
||||
Reference in New Issue
Block a user