There was an error while loading. Please reload this page.
1 parent 275a01f commit 4b6679eCopy full SHA for 4b6679e
src/app/ngdatepicker/components/ngdatepicker/ngdatepicker.component.ts
@@ -136,15 +136,15 @@ export class NgDatepickerComponent {
136
this.year--;
137
138
if (this.year < this.minYear) {
139
- this.year = this.minYear + this.yearCellsCount / 2 - 1;
+ this.year = this.minYear;
140
}
141
142
break;
143
case DatepickerView.Years:
144
this.year -= this.yearCellsCount;
145
146
147
- this.year = this.minYear;
+ this.year = this.minYear + this.yearCellsCount / 2 - 1;
148
149
150
0 commit comments