Skip to content

Commit 22c3bac

Browse files
authored
fix: providing currentTarget in overridePosition (#564)
overridePosition requires currentTarget with currentEvent
1 parent 3e75a09 commit 22c3bac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ class ReactTooltip extends React.Component {
382382
result.position = this.props.overridePosition(
383383
result.position,
384384
e,
385+
e.currentTarget,
385386
this.tooltipRef,
386387
desiredPlace,
387388
desiredPlace,

0 commit comments

Comments
 (0)