Fix typo in datepicker example (#15327)

This commit is contained in:
Thomas
2019-03-04 23:06:14 +01:00
committed by Joey Perrott
parent 3f8d02c2d6
commit e130c5c27c
@@ -51,9 +51,9 @@ export class DatepickerViewsSelectionExample {
this.date.setValue(ctrlValue);
}
chosenMonthHandler(normlizedMonth: Moment, datepicker: MatDatepicker<Moment>) {
chosenMonthHandler(normalizedMonth: Moment, datepicker: MatDatepicker<Moment>) {
const ctrlValue = this.date.value;
ctrlValue.month(normlizedMonth.month());
ctrlValue.month(normalizedMonth.month());
this.date.setValue(ctrlValue);
datepicker.close();
}