Skip to content

Commit 83b72c6

Browse files
committed
fix(react18): tip not hiding with React 18 StrictMode enabled
1 parent 89429a9 commit 83b72c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class ReactTooltip extends React.Component {
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)