Skip to content

Commit

Permalink
fix(react18): tip not hiding with React 18 StrictMode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jafin committed Mar 31, 2022
1 parent 89429a9 commit 83b72c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class ReactTooltip extends React.Component {

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 83b72c6

Please sign in to comment.