Dropdown: invalid text after cleaning via ngModel #14784
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Text is not displayed correctly if you use the
selectedItem
template and clear the selected value via ngModel.Environment
OS: Windows 8.1, Windows 10
Reproducer
https://stackblitz.com/github/dbelob/primeng-dropdown-clear-error
Angular version
17.1.3
PrimeNG version
17.6.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v20.11.0
Browser(s)
Chrome 120.0.6099.71, Firefox 120.0.1, Edge 120.0.2210.61
Steps to reproduce the behavior
The error is reproduced with static and dynamic value in the placeholder.
Expected behavior
After clicking Clear button the correct text should be 'Select a City'.
The text was updated successfully, but these errors were encountered: