mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Fix typo in datepicker example (#15327)
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user