We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8c833 commit 8b6efb1Copy full SHA for 8b6efb1
src/lib/datepicker/datepicker.ts
@@ -245,10 +245,10 @@ export class MdDatepicker<D> implements OnDestroy {
245
246
/** Open the calendar as a dialog. */
247
private _openAsDialog(): void {
248
- let config = new MdDialogConfig();
249
- config.viewContainerRef = this._viewContainerRef;
250
-
251
- this._dialogRef = this._dialog.open(MdDatepickerContent, config);
+ this._dialogRef = this._dialog.open(MdDatepickerContent, {
+ viewContainerRef: this._viewContainerRef,
+ direction: this._dir ? this._dir.value : 'ltr'
+ });
252
this._dialogRef.afterClosed().subscribe(() => this.close());
253
this._dialogRef.componentInstance.datepicker = this;
254
}
0 commit comments