When p-select is editable and a default value already exists, selectOption displays object when the filter selects other options #17384
Labels
Resolution: Help Wanted
Issue or pull request requires extra help and feedback
Milestone
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
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
[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
The text was updated successfully, but these errors were encountered: