We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 288a70a commit b90af40Copy full SHA for b90af40
packages/react-dom/src/events/ReactDOMEventReplaying.js
@@ -230,6 +230,19 @@ function trapReplayableEvent(
230
);
231
listenerMap.set(passiveEventKey, listener);
232
}
233
+ // TODO: Ideally we shouldn't need these to be active but
234
+ // if we only have a passive listener, we at least need it
235
+ // to still pretend to be active so that Flare gets those
236
+ // events.
237
+ const activeEventKey = topLevelTypeString + '_active';
238
+ if (!listenerMap.has(activeEventKey)) {
239
+ const listener = addResponderEventSystemEvent(
240
+ document,
241
+ topLevelTypeString,
242
+ false,
243
+ );
244
+ listenerMap.set(activeEventKey, listener);
245
+ }
246
247
248
0 commit comments