Skip to content

Commit

Permalink
Merge pull request #11000 from cetincakiroglu/bugfix
Browse files Browse the repository at this point in the history
Fix #10993 | Calendar: the Year is incorrect for Multiple Months mode
  • Loading branch information
yigitfindikli committed Dec 24, 2021
2 parents f61b526 + 6aea9f0 commit 4dfd50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface LocaleSettings {
{{getMonthName(month.month)}}
</button>
<button type="button" (click)="switchToYearView($event)" (keydown)="onContainerButtonKeydown($event)" *ngIf="currentView !== 'year'" class="p-datepicker-year p-link" [disabled]="switchViewButtonDisabled()">
{{currentYear}}
{{month.year}}
</button>
<span class="p-datepicker-decade" *ngIf="currentView === 'year'">
<ng-container *ngIf="!decadeTemplate">{{yearPickerValues()[0]}} - {{yearPickerValues()[yearPickerValues().length - 1]}}</ng-container>
Expand Down

0 comments on commit 4dfd50a

Please sign in to comment.