From 22c3bacfea3746b4b3aeeb39ccdc7559148811e0 Mon Sep 17 00:00:00 2001 From: Shuhei Aoyama Date: Fri, 13 Mar 2020 09:42:56 +0900 Subject: [PATCH] fix: providing currentTarget in overridePosition (#564) overridePosition requires currentTarget with currentEvent --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index a00e944ce..2db07902f 100755 --- a/src/index.js +++ b/src/index.js @@ -382,6 +382,7 @@ class ReactTooltip extends React.Component { result.position = this.props.overridePosition( result.position, e, + e.currentTarget, this.tooltipRef, desiredPlace, desiredPlace,