File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ export function generateTrigger(
262
262
componentWillUnmount ( ) {
263
263
this . clearDelayTimer ( ) ;
264
264
this . clearOutsideHandler ( ) ;
265
- clearTimeout ( this . mouseDownTimeout ) ;
265
+ this . clearMouseDownTimer ( ) ;
266
266
raf . cancel ( this . attachId ) ;
267
267
}
268
268
@@ -389,6 +389,7 @@ export function generateTrigger(
389
389
clearTimeout ( this . mouseDownTimeout ) ;
390
390
this . mouseDownTimeout = window . setTimeout ( ( ) => {
391
391
this . hasPopupMouseDown = false ;
392
+ this . clearMouseDownTimer ( ) ;
392
393
} , 0 ) ;
393
394
394
395
if ( this . context ) {
@@ -666,6 +667,13 @@ export function generateTrigger(
666
667
}
667
668
}
668
669
670
+ clearMouseDownTimer ( ) {
671
+ if ( this . mouseDownTimeout ) {
672
+ clearTimeout ( this . mouseDownTimeout ) ;
673
+ this . mouseDownTimeout = null ;
674
+ }
675
+ }
676
+
669
677
clearOutsideHandler ( ) {
670
678
if ( this . clickOutsideHandler ) {
671
679
this . clickOutsideHandler . remove ( ) ;
You can’t perform that action at this time.
0 commit comments