Skip to content

Commit

Permalink
Fix event replaying logic (#19269)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Jul 7, 2020
1 parent 91a2e81 commit 97b96da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/react-dom/src/events/ReactDOMEventReplaying.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {|
Expand Down Expand Up @@ -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,
);
}

Expand Down

0 comments on commit 97b96da

Please sign in to comment.