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 7d2b2f1 commit 4e1f1a6Copy full SHA for 4e1f1a6
packages/react-dom/src/events/ReactDOMEventListener.js
@@ -57,6 +57,7 @@ function getTopLevelCallbackBookKeeping(
57
targetInst: Fiber | null,
58
ancestors: Array<Fiber>,
59
} {
60
+ // This is safe because DOMTopLevelTypes are always native event type strings
61
const topLevelType = unsafeCastStringToDOMTopLevelType(nativeEvent.type);
62
63
if (callbackBookkeepingPool.length) {
0 commit comments