Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete value remains the old when entered text changed #12027

Closed
mustiy opened this issue Oct 11, 2022 · 0 comments · Fixed by #12054
Closed

Autocomplete value remains the old when entered text changed #12027

mustiy opened this issue Oct 11, 2022 · 0 comments · Fixed by #12054
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mustiy
Copy link

mustiy commented Oct 11, 2022

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

@mustiy mustiy added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 11, 2022
@mustiy mustiy changed the title Component: Title Autocomplete value remains the old when entered text changed Oct 11, 2022
@cetincakiroglu cetincakiroglu added this to the 14.1.3 milestone Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants