Skip to content

Commit

Permalink
fix(overlay): detach method returns undefined (#7449)
Browse files Browse the repository at this point in the history
Fixes #7408
  • Loading branch information
devversion authored and kara committed Oct 3, 2017
1 parent c1f6ea1 commit 0584cdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cdk/overlay/overlay-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export class OverlayRef implements PortalHost {

/**
* Detaches an overlay from a portal.
* @returns Resolves when the overlay has been detached.
* @returns The portal detachment result.
*/
detach(): Promise<any> {
detach(): any {
this.detachBackdrop();

// When the overlay is detached, the pane element should disable pointer events.
Expand All @@ -99,7 +99,7 @@ export class OverlayRef implements PortalHost {
this._config.scrollStrategy.disable();
}

let detachmentResult = this._portalHost.detach();
const detachmentResult = this._portalHost.detach();

// Only emit after everything is detached.
this._detachments.next();
Expand Down

0 comments on commit 0584cdf

Please sign in to comment.