mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix event replaying logic (#19269)
This commit is contained in:
+6
-2
@@ -135,7 +135,10 @@ import {
|
||||
TOP_BLUR,
|
||||
} from './DOMTopLevelEventTypes';
|
||||
import {IS_REPLAYED, PLUGIN_EVENT_SYSTEM} from './EventSystemFlags';
|
||||
import {listenToTopLevelEvent} from './DOMModernPluginEventSystem';
|
||||
import {
|
||||
listenToTopLevelEvent,
|
||||
capturePhaseEvents,
|
||||
} from './DOMModernPluginEventSystem';
|
||||
import {addResponderEventSystemEvent} from './DeprecatedDOMEventResponderSystem';
|
||||
|
||||
type QueuedReplayableEvent = {|
|
||||
@@ -236,12 +239,13 @@ function trapReplayableEventForContainer(
|
||||
container: Container,
|
||||
listenerMap: ElementListenerMap,
|
||||
) {
|
||||
const capture = capturePhaseEvents.has(topLevelType);
|
||||
listenToTopLevelEvent(
|
||||
topLevelType,
|
||||
((container: any): Element),
|
||||
listenerMap,
|
||||
PLUGIN_EVENT_SYSTEM,
|
||||
false,
|
||||
capture,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user