We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359df2f commit 6d4d97fCopy full SHA for 6d4d97f
1 file changed
packages/react-dom/src/events/plugins/EnterLeaveEventPlugin.js
@@ -150,9 +150,8 @@ function extractEvents(
150
151
let enter: KnownReactSyntheticEvent | null = null;
152
153
- // If we are processing the first ancestor, then we
154
- // should process the same nativeEvent again, as we
155
- // will have already processed it in the first ancestor.
+ // We should only process this nativeEvent if we are processing
+ // the first ancestor. Next time, we will ignore the event.
156
const nativeTargetInst = getClosestInstanceFromNode((nativeEventTarget: any));
157
if (nativeTargetInst === targetInst) {
158
const enterEvent: KnownReactSyntheticEvent = new SyntheticEvent(
0 commit comments