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

Component: Listbox (p-listbox) shows [object Object] with template #17098

Closed
redakker opened this issue Dec 17, 2024 · 4 comments
Closed

Component: Listbox (p-listbox) shows [object Object] with template #17098

redakker opened this issue Dec 17, 2024 · 4 comments
Assignees
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team Resolution: Needs More Information More information about the issue is needed to find a correct solution

Comments

@redakker
Copy link

Describe the bug

When I use , the template is not shown.
optionLabel is not used
I got "[object Object]" for each and every list item

Environment

Windows 11
Angular 18
"primeng": "^18.0.0",
"@primeng/themes": "^18.0.0",
"primeicons": "^7.0.0",

Reproducer

No response

Angular version

18.2.0

PrimeNG version

18.0.0

Build / Runtime

TypeScript

Language

ALL

Node version (for AoT issues node --version)

v22.12.0

Browser(s)

Chrome - Version 131.0.6778.140 (Official Build) (64-bit)

Steps to reproduce the behavior

No response

Expected behavior

List items are listed as the template defines them

@redakker redakker 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 17, 2024
@redakker redakker changed the title Component: Listbox Component: Listbox shows [object Object] with template Dec 17, 2024
@redakker redakker changed the title Component: Listbox shows [object Object] with template Component: Listbox (p-listbox) shows [object Object] with template Dec 17, 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 19, 2024
@mertsincan mertsincan added this to the 19.0.2 milestone Dec 19, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Dec 19, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

Cannot reproduce the issue please see the live example: https://primeng.org/listbox#template
If the issue persists with the latest version, could you please add more info, description and stackblitz example?

@cetincakiroglu cetincakiroglu added Resolution: Cannot Replicate Issue could not be replicated by Core Team Resolution: Needs More Information More information about the issue is needed to find a correct solution and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Dec 23, 2024
Copy link

We're unable to replicate your issue. Could you please try it with the latest PrimeNG version? If the problem continues, could you create a reproducer using PrimeNG Issue Template or provide additional details by editing this issue? This issue will be closed if no activities in 20 days.

Copy link

More information is needed to find a solution. A runnable StackBlitz example and additional details would be helpful.

@redakker
Copy link
Author

We're unable to replicate your issue. Could you please try it with the latest PrimeNG version? If the problem continues, could you create a reproducer using PrimeNG Issue Template or provide additional details by editing this issue? This issue will be closed if no activities in 20 days.

Hmm, in the given template (stackblitz) I cannot reproduce either. I'll recheck my code base.
Thanks for the quick reply.
You can close the ticket. I won't open it again; just leave a comment if I find the issue on my side.

@github-project-automation github-project-automation bot moved this from Review to Done in PrimeNG Dec 23, 2024
@cetincakiroglu cetincakiroglu removed this from the 19.0.2 milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team Resolution: Needs More Information More information about the issue is needed to find a correct solution
Projects
Status: Done
Development

No branches or pull requests

3 participants