Skip to content

Commit 3e75a09

Browse files
authored
fix(overridePosition): providing currentEvent in overridePosition (ReactTooltip#563)
fix ReactTooltip#513
1 parent fcdf7f1 commit 3e75a09

File tree

2 files changed

+2240
-440
lines changed

2 files changed

+2240
-440
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class ReactTooltip extends React.Component {
381381
if (result.position && this.props.overridePosition) {
382382
result.position = this.props.overridePosition(
383383
result.position,
384-
e.currentTarget,
384+
e,
385385
this.tooltipRef,
386386
desiredPlace,
387387
desiredPlace,

0 commit comments

Comments
 (0)