File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ class ReactTooltip extends Component {
7171 isCapture : props . isCapture || false
7272 }
7373 this . delayShowLoop = null
74+ this . delayHideLoop = null
7475 }
7576
7677 /* Bind this with method */
@@ -103,6 +104,7 @@ class ReactTooltip extends Component {
103104
104105 componentWillUnmount ( ) {
105106 clearTimeout ( this . delayShowLoop )
107+ clearTimeout ( this . delayHideLoop )
106108 this . unbindListener ( )
107109 this . removeScrollListener ( )
108110 this . mount = false
@@ -312,7 +314,8 @@ class ReactTooltip extends Component {
312314 hideTooltip ( ) {
313315 const { delayHide} = this . state
314316 clearTimeout ( this . delayShowLoop )
315- setTimeout ( ( ) => {
317+ clearTimeout ( this . delayHideLoop )
318+ this . delayHideLoop = setTimeout ( ( ) => {
316319 this . setState ( {
317320 show : false
318321 } )
You can’t perform that action at this time.
0 commit comments