From 342311a966ae37c8b70bffe6dd61919639da0c88 Mon Sep 17 00:00:00 2001 From: Jason Finch Date: Thu, 31 Mar 2022 13:50:59 +1000 Subject: [PATCH] fix(react18): tip not hiding with React 18 StrictMode enabled --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 96fb0f37e..282fd3be1 100755 --- a/src/index.js +++ b/src/index.js @@ -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