Skip to content

Commit

Permalink
Fix: SortIcon (#17281)
Browse files Browse the repository at this point in the history
Changed operator to hide default if ng-template with  `#sorticon` OR `pTemplate="sorticon"` templates are provided in the component.
  • Loading branch information
yxlim-dickson authored Jan 16, 2025
1 parent 3bad663 commit dd543a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3692,7 +3692,7 @@ export class SortableColumn implements OnInit, OnDestroy {
selector: 'p-sortIcon',
standalone: false,
template: `
<ng-container *ngIf="!(dt.sortIconTemplate && dt._sortIconTemplate)">
<ng-container *ngIf="!(dt.sortIconTemplate || dt._sortIconTemplate)">
<SortAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 0" />
<SortAmountUpAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 1" />
<SortAmountDownIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === -1" />
Expand Down

0 comments on commit dd543a8

Please sign in to comment.