primeng
primeng copied to clipboard
AutoComplete and IconField: allow using iconField with AutoComplete to show icons in Input
Describe the bug
With the IconField-Component one can set an Icon to an Input-Field. That is not possible, if there is an autocomplete instead of an input field. They both look exactly the same for the user, so it would be just logical to be able to use the IconField with an AutoComplete-Field.
Environment
All environments
Reproducer
https://stackblitz.com/edit/github-o8ncxg
Angular version
18.2.2
PrimeNG version
17.18.9
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.16.0
Browser(s)
No response
Steps to reproduce the behavior
In the linked Stackblitz you can see, that the autocompleter does not contain the Icon, which the inputText contains, even though both of them are in the IconField-Component.
Expected behavior
The Autocompleter should contain the Icon, when I put it in the IconField-Component.