Skip to content

Commit

Permalink
Merge pull request #755 from jafin/fix/react18-strictmode
Browse files Browse the repository at this point in the history
fix(react18): tip not hiding with React 18 StrictMode enabled
  • Loading branch information
aronhelser committed May 2, 2022
2 parents 43ac8b9 + 83b72c6 commit 064249c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -148,6 +148,7 @@ class ReactTooltip extends React.ReactNode {

componentDidMount() {
const { insecure, resizeHide } = this.props;
this.mount = true;

this.bindListener(); // Bind listener for tooltip
this.bindWindowEvents(resizeHide); // Bind global event for static method
Expand Down

0 comments on commit 064249c

Please sign in to comment.