Skip to content

Commit

Permalink
fix: fixed decade title logic
Browse files Browse the repository at this point in the history
changed *ngIf="!decadeTemplate && _decadeTemplate" to *ngIf="!decadeTemplate && !_decadeTemplate">
  • Loading branch information
rosenthalj committed Jan 8, 2025
1 parent 5020d66 commit 48bf98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const DATEPICKER_VALUE_ACCESSOR: any = {
{{ getYear(month) }}
</button>
<span class="p-datepicker-decade" *ngIf="currentView === 'year'">
<ng-container *ngIf="!decadeTemplate && _decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
<ng-container *ngIf="!decadeTemplate && !_decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
<ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
</span>
</div>
Expand Down

0 comments on commit 48bf98c

Please sign in to comment.