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

When p-select is editable and a default value already exists, selectOption displays object when the filter selects other options #17384

Closed
1 of 4 tasks
LiJun0107 opened this issue Jan 14, 2025 · 1 comment · May be fixed by #17433
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Milestone

Comments

@LiJun0107
Copy link

LiJun0107 commented Jan 14, 2025

Describe the bug

When p-select is editable and a default value already exists, selectOption displays object when the filter selects other options,

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/5fi9n9nf?file=src%2Fapp%2Fselect-filter-demo.html

Environment

primeng

Angular version

19.0.1

PrimeNG version

v19

Node version

19.0.0

Browser(s)

No response

Steps to reproduce the behavior

  1. <p-select
    [options]="countries"
    [(ngModel)]="selectOption"
    optionLabel="name"
    [filter]="true"
    filterBy="name"
    [editable]="true"
    [showClear]="true"
    placeholder="Select a Country"
    class="w-full md:w-56"

Set editable and filter
2. Click the drop-down box and enter the following options in the filter
3. selectOption displays objects abnormally

Expected behavior

selectOption can display the data correctly

@LiJun0107 LiJun0107 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 14, 2025
@mertsincan mertsincan added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 16, 2025
@mertsincan mertsincan added this to the Future milestone Jan 16, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Jan 16, 2025
Copy link

Due to PrimeTek's demanding roadmap for PrimeNG, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants