diff --git a/src/index.js b/src/index.js index adc662661..7ea0dba92 100644 --- a/src/index.js +++ b/src/index.js @@ -385,7 +385,7 @@ class ReactTooltip extends React.Component { show: true }, () => { this.updatePosition() - if (isInvisible && afterShow) afterShow() + if (isInvisible && afterShow) afterShow(e) }) } } @@ -446,7 +446,7 @@ class ReactTooltip extends React.Component { show: false }, () => { this.removeScrollListener() - if (isVisible && afterHide) afterHide() + if (isVisible && afterHide) afterHide(e) }) }