Skip to content

Commit

Permalink
Fixed #14061 - Refactor ngIf condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Nov 15, 2023
1 parent 2008537 commit cc4e3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ export class MultiSelectItem {
<ng-template #buildInItems let-items let-scrollerOptions="options">
<ul #items class="p-multiselect-items p-component" [ngClass]="scrollerOptions.contentStyleClass" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true">
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
<ng-container *ngIf="option.group">
<ng-container *ngIf="isOptionGroup(option)">
<li [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" class="p-multiselect-item-group" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
</li>
</ng-container>
<ng-container *ngIf="!option.group">
<ng-container *ngIf="!isOptionGroup(option)">
<p-multiSelectItem
[id]="id + '_' + getOptionIndex(i, scrollerOptions)"
[option]="option"
Expand Down

2 comments on commit cc4e3f0

@vercel
Copy link

@vercel vercel bot commented on cc4e3f0 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angularinterviews
Copy link

@angularinterviews angularinterviews commented on cc4e3f0 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.