Skip to content

Commit

Permalink
fix: providing currentTarget in overridePosition (ReactTooltip#564)
Browse files Browse the repository at this point in the history
overridePosition requires currentTarget with currentEvent
  • Loading branch information
MtBlue81 authored Mar 13, 2020
1 parent 3e75a09 commit 22c3bac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ class ReactTooltip extends React.Component {
result.position = this.props.overridePosition(
result.position,
e,
e.currentTarget,
this.tooltipRef,
desiredPlace,
desiredPlace,
Expand Down

0 comments on commit 22c3bac

Please sign in to comment.