-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: Autocomplete #14615
Comments
still having this issue with version 17.6 |
I investigated the issue further, the autocomplete binds to { Id:null, Description:null }.
|
Also having this issue. Having a null label will display as [Object object]. Related to |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap? Thanks a lot for your understanding! |
Describe the bug
Autocomplete bound to property that has value null displays [Object object]
Environment
"@angular/core": "^17.0.7",
"primeng": "^17.3.3",
Reproducer
No response
Angular version
17.0.7
PrimeNG version
17.3.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v20.10.0
Browser(s)
No response
Steps to reproduce the behavior
`
vm.viewData.besluitType= {
PrefLabel:null
}
<p-autoComplete appendTo="body" [ngModel]="vm.viewData.besluitType" class="flexauto"
[suggestions]="vm.besluitTypes" (completeMethod)="this.searchBesluitTypeSubj.next($event.query)"
(ngModelChange)="setBesluitTypeId($event)" field='PrefLabel' name="besluittype">
{{besluittype.PrefLabel}}
`
Expected behavior
I expect it to display an empty string as was the case in version 16
The text was updated successfully, but these errors were encountered: