Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

v18 Component: Select #16998

Closed
lengauermario opened this issue Dec 10, 2024 · 1 comment
Closed

v18 Component: Select #16998

lengauermario opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@lengauermario
Copy link

Describe the bug

Template of selectedItem is not working. It should be displaying "This is a customvalue" in the input field.

<p-select [options]="types" appendTo="body" [style]="{ width: '100%' }">
  <ng-template pTemplate="selectedItem" let-item>
    This is a customvalue
  </ng-template>
  <ng-template pTemplate="item" let-item> {{ item }} - test </ng-template>
</p-select>

image

Environment

upgrading from 18.0.0-rc.1 to 18.0.0

Reproducer

https://stackblitz.com/edit/github-wcuxbgyk?file=package.json

Angular version

18.0.1

PrimeNG version

18.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v22.5.1

Browser(s)

Chrome v. 131.0.6778.86

Steps to reproduce the behavior

  1. view the select box see that the custom value is not shown.

Expected behavior

selectedItem should display custom value.

@lengauermario lengauermario added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 10, 2024
@mertsincan mertsincan added this to the 18.0.1 milestone Dec 11, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Dec 11, 2024
@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 11, 2024
@mehmetcetin01140
Copy link
Contributor

Fixed in 8513e95

@github-project-automation github-project-automation bot moved this from Review to Done in PrimeNG Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
Status: Done
Development

No branches or pull requests

4 participants