Skip to content

Commit

Permalink
fix - fire mouseenter event handlers twice
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanoook committed Sep 27, 2019
1 parent 71dcd9e commit 3fed177
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-dom/src/events/EnterLeaveEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ const EnterLeaveEventPlugin = {

accumulateEnterLeaveDispatches(leave, enter, from, to);

if (isOutEvent && from && nativeEventTarget !== fromNode) {
return [leave];
}

return [leave, enter];
},
};
Expand Down

0 comments on commit 3fed177

Please sign in to comment.