@@ -12,7 +12,7 @@ import {OverlayConfig} from './overlay-config';
1212import { OverlayKeyboardDispatcher } from './keyboard/overlay-keyboard-dispatcher' ;
1313import { Observable } from 'rxjs/Observable' ;
1414import { Subject } from 'rxjs/Subject' ;
15- import { MatBackdrop } from './backdrop' ;
15+ import { CdkOverlayBackdrop } from './backdrop' ;
1616import { ComponentPortal } from '@angular/cdk/portal' ;
1717import { first } from 'rxjs/operators/first' ;
1818import { empty } from 'rxjs/observable/empty' ;
@@ -22,11 +22,10 @@ import {empty} from 'rxjs/observable/empty';
2222 * Used to manipulate or dispose of said overlay.
2323 */
2424export class OverlayRef implements PortalOutlet {
25- private _backdropElement : HTMLElement | null = null ;
2625 private _backdropClick : Subject < any > = new Subject ( ) ;
2726 private _attachments = new Subject < void > ( ) ;
2827 private _detachments = new Subject < void > ( ) ;
29- private _backdropInstance : MatBackdrop | null ;
28+ private _backdropInstance : CdkOverlayBackdrop | null ;
3029
3130 /** Stream of keydown events dispatched to this overlay. */
3231 _keydownEvents = new Subject < KeyboardEvent > ( ) ;
@@ -81,7 +80,8 @@ export class OverlayRef implements PortalOutlet {
8180 this . _togglePointerEvents ( true ) ;
8281
8382 if ( this . _backdropHost ) {
84- this . _backdropInstance = this . _backdropHost . attach ( new ComponentPortal ( MatBackdrop ) ) . instance ;
83+ this . _backdropInstance =
84+ this . _backdropHost . attach ( new ComponentPortal ( CdkOverlayBackdrop ) ) . instance ;
8585 this . _backdropInstance ! . _setClass ( this . _config . backdropClass ! ) ;
8686 }
8787
0 commit comments