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

Component: Auto Complete - with Force Selection, selected option is overriding with the matched value #16625

Open
dpeese opened this issue Oct 23, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@dpeese
Copy link

dpeese commented Oct 23, 2024

Describe the bug

When Force Selection is enabled, if we have options like below, on entering "Afghanistan" and selecting option "Afghanistanb" is still emitting "Afghanistan" instead of "Afghanistanb". It is only happening for the first time
Ex:
Afghanistan
Afghanistana
Afghanistanb

Environment

primeng
nodejs
angular

Reproducer

https://stackblitz.com/edit/632ydq?file=src%2Fapp%2Fautocomplete-reactive-forms-demo.ts,src%2Fservice%2Fcountryservice.ts,src%2Fapp%2Fautocomplete-reactive-forms-demo.html

Angular version

18

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@dpeese dpeese added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 23, 2024
@dpeese dpeese changed the title Component: Auto Complete - option select is overriding with Force Selection matched value Component: Auto Complete - selected option is overriding with Force Selection matched value Oct 23, 2024
@dpeese dpeese changed the title Component: Auto Complete - selected option is overriding with Force Selection matched value Component: Auto Complete - with Force Selection, selected option is overriding with the matched value Oct 23, 2024
P5175 added a commit to P5175/primeng that referenced this issue Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant