File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,9 @@ export class OverlayRef implements PortalHost {
85
85
86
86
/**
87
87
* Detaches an overlay from a portal.
88
- * @returns Resolves when the overlay has been detached .
88
+ * @returns The portal detachment result .
89
89
*/
90
- detach ( ) : Promise < any > {
90
+ detach ( ) : any {
91
91
this . detachBackdrop ( ) ;
92
92
93
93
// When the overlay is detached, the pane element should disable pointer events.
@@ -99,7 +99,7 @@ export class OverlayRef implements PortalHost {
99
99
this . _config . scrollStrategy . disable ( ) ;
100
100
}
101
101
102
- let detachmentResult = this . _portalHost . detach ( ) ;
102
+ const detachmentResult = this . _portalHost . detach ( ) ;
103
103
104
104
// Only emit after everything is detached.
105
105
this . _detachments . next ( ) ;
You can’t perform that action at this time.
0 commit comments