Autocomplete value remains the old when entered text changed #12027
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
It's about the Autocomplete Component.
If you select a value from the List, the selected value(NgModel) and the
value of Autocomplete Component ist [object Object]. That's ok.
But when i delete the value from the Component, value of Autocomplete remains
the old selected Value. I expected that the value is also cleared.
My purpose is to check if a value is selected from the list. I can not achieve this with NgModel.
Environment
"primeng": "14.0.2",
/ △ \ | '_ \ /
| | | | |/ _
| '__| | | | | | |/ ___ | | | | (| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
Angular CLI: 14.2.4
Node: 16.17.1
Package Manager: npm 8.15.0
OS: win32 x64
Angular: 14.2.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1402.5
@angular-devkit/build-angular 14.2.5
@angular-devkit/core 14.2.5
@angular-devkit/schematics 14.2.4
@schematics/angular 14.2.4
rxjs 7.5.7
typescript 4.6.4
Reproducer
https://stackblitz.com/edit/github-dndrbf?file=README.md
Angular version
14.0.7
PrimeNG version
14.0.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
4.6.4
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: