Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

p-multiSelect: #selectedItems template does not work #17509

Closed
Moh1982KH opened this issue Jan 27, 2025 · 2 comments
Closed

p-multiSelect: #selectedItems template does not work #17509

Moh1982KH opened this issue Jan 27, 2025 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Moh1982KH
Copy link

Moh1982KH commented Jan 27, 2025

when templating p-multiselect and defining #selectedItems , the multiselect ignores it.

"


<p-multiselect
[options]="countries"
[(ngModel)]="selectedCountries"
styleClass="w-full"

<ng-template #selectedItems>
  <span>TEST</span>
</ng-template>
<ng-template let-country #item>
  <div class="flex items-center gap-2">
    <div>{{ country.name }}</div>
  </div>
</ng-template>
"
  • Environment: Angular 19, PrimeNG 19, node 22
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 27, 2025
@sandrotonon
Copy link
Contributor

sandrotonon commented Jan 28, 2025

You have to use #selecteditems instead of #selectedItems.

Duplicates #17358

@Moh1982KH
Copy link
Author

Thank you :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants