File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const focusableQueryString =
33
33
shadow : true ,
34
34
} )
35
35
export class Menu implements ComponentInterface , MenuI {
36
- private animation ?: any ; // TODO(FW-2832): type
36
+ private animation ?: Animation ;
37
37
private lastOnEnd = 0 ;
38
38
private gesture ?: Gesture ;
39
39
private blocker = GESTURE_CONTROLLER . createBlocker ( { disableScroll : true } ) ;
@@ -477,11 +477,11 @@ export class Menu implements ComponentInterface, MenuI {
477
477
this . animation = undefined ;
478
478
}
479
479
// Create new animation
480
- this . animation = await menuController . _createAnimation ( this . type ! , this ) ;
480
+ const animation = ( this . animation = await menuController . _createAnimation ( this . type ! , this ) ) ;
481
481
if ( ! config . getBoolean ( 'animated' , true ) ) {
482
- this . animation . duration ( 0 ) ;
482
+ animation . duration ( 0 ) ;
483
483
}
484
- this . animation . fill ( 'both' ) ;
484
+ animation . fill ( 'both' ) ;
485
485
}
486
486
487
487
private async startAnimation ( shouldOpen : boolean , animated : boolean ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments