Skip to content

Commit 064249c

Browse files
authored
Merge pull request #755 from jafin/fix/react18-strictmode
fix(react18): tip not hiding with React 18 StrictMode enabled
2 parents 43ac8b9 + 83b72c6 commit 064249c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class ReactTooltip extends React.ReactNode {
148148

149149
componentDidMount() {
150150
const { insecure, resizeHide } = this.props;
151+
this.mount = true;
151152

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

0 commit comments

Comments
 (0)