AutoComplete: (Multiple) Placeholder does not disappear after selecting item #14376
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In PrimeNG 16.6.0 and earlier, selecting an item in a multi-select AutoComplete removes the placeholder.
In PrimeNG v16.7.0 and later, selecting an item in a multi-select AutoComplete does NOT remove the placeholder.
PrimeNG 16.6.0 (Stackblitz)
PrimeNG 16.7.0 (Stackblitz) and PrimeNG 17.1.0 (Stackblitz)
I believe this regression is caused by the removal of this line in v16.7.0:
[attr.placeholder]="value && value.length ? null : placeholder"
Environment
Stackblitz
Reproducer
https://stackblitz.com/edit/stackblitz-starters-srrovt?file=package.json,src%2Fmain.ts
Angular version
16.2.12
PrimeNG version
16.7.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
Whichever version Stackblitz uses
Browser(s)
No response
Steps to reproduce the behavior
[multiple]="true"
Expected behavior
The placeholder should disappear after selecting an item. Behavior should remain consistent with previous versions.
The text was updated successfully, but these errors were encountered: