@@ -55,7 +55,7 @@ export class MultipleSelectInstance {
55
55
protected selectGroupName = '' ;
56
56
protected selectItemName = '' ;
57
57
protected scrolledByMouse = false ;
58
- protected openDelayTimer : NodeJS . Timeout | undefined ;
58
+ protected openDelayTimer ?: number ;
59
59
60
60
protected updateDataStart ?: number ;
61
61
protected updateDataEnd ?: number ;
@@ -1145,8 +1145,8 @@ export class MultipleSelectInstance {
1145
1145
return new Promise ( resolve => {
1146
1146
if ( openDelay !== null && openDelay >= 0 ) {
1147
1147
// eslint-disable-next-line prefer-const
1148
- clearTimeout ( this . openDelayTimer ) ;
1149
- this . openDelayTimer = setTimeout ( ( ) => {
1148
+ window . clearTimeout ( this . openDelayTimer ) ;
1149
+ this . openDelayTimer = window . setTimeout ( ( ) => {
1150
1150
this . openDrop ( ) ;
1151
1151
resolve ( ) ;
1152
1152
} , openDelay ) ;
@@ -1283,7 +1283,7 @@ export class MultipleSelectInstance {
1283
1283
this . scrolledByMouse = false ;
1284
1284
currentOption . scrollIntoView ( { block : 'nearest' } ) ;
1285
1285
this . changeCurrentOptionHighlight ( currentOption ) ;
1286
- setTimeout ( ( ) => ( this . scrolledByMouse = true ) , 10 ) ;
1286
+ window . setTimeout ( ( ) => ( this . scrolledByMouse = true ) , 10 ) ;
1287
1287
}
1288
1288
}
1289
1289
}
0 commit comments