Skip to content

Commit

Permalink
fix(datepicker): use correct viewContainerRef for dialog. (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba authored and andrewseguin committed Jul 27, 2017
1 parent 3cb3945 commit 08037f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/demo-app/datepicker/datepicker-demo.ts
@@ -1,4 +1,4 @@
import {Component} from '@angular/core';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {MdDatepickerInputEvent} from '@angular/material';


Expand All @@ -7,6 +7,7 @@ import {MdDatepickerInputEvent} from '@angular/material';
selector: 'datepicker-demo',
templateUrl: 'datepicker-demo.html',
styleUrls: ['datepicker-demo.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DatepickerDemo {
touch: boolean;
Expand Down
1 change: 0 additions & 1 deletion src/lib/datepicker/datepicker.ts
Expand Up @@ -282,7 +282,6 @@ export class MdDatepicker<D> implements OnDestroy {
/** Open the calendar as a dialog. */
private _openAsDialog(): void {
this._dialogRef = this._dialog.open(MdDatepickerContent, {
viewContainerRef: this._viewContainerRef,
direction: this._dir ? this._dir.value : 'ltr'
});
this._dialogRef.afterClosed().subscribe(() => this.close());
Expand Down

0 comments on commit 08037f9

Please sign in to comment.