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

Closed
dpeese opened this issue Oct 23, 2024 · 1 comment · Fixed by #16649
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

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
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 18, 2024
@mertsincan mertsincan added this to the 17.18.13 milestone Nov 18, 2024
@mertsincan
Copy link
Member

Fixed in #16649

@mertsincan mertsincan moved this to Done in PrimeNG Dec 9, 2024
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
Status: Done
2 participants