Describe the bug
Removing all text from the AutoComplete component's input manually does not trigger the form value to be cleared when the forceSelection option is set to True.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/stackblitz-starters-gzhepj64?file=src%2Fapp.component.ts
Environment
Angular 21.1.0 + Primeng 21.1.1
Angular version
21.1.0
PrimeNG version
v21
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
- Select the country in the AutoComplete
- Clear the text inside the input
- Observe that the "Selected value" is still shown
Expected behavior
"Selected value" should be cleared after clearing the input text
Describe the bug
Removing all text from the AutoComplete component's input manually does not trigger the form value to be cleared when the forceSelection option is set to True.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/stackblitz-starters-gzhepj64?file=src%2Fapp.component.ts
Environment
Angular 21.1.0 + Primeng 21.1.1
Angular version
21.1.0
PrimeNG version
v21
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
"Selected value" should be cleared after clearing the input text