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

[v19] Autoselect selects the incorrect option if the input matches an available option #17699

Open
1 of 4 tasks
theofidry opened this issue Feb 17, 2025 · 0 comments
Open
1 of 4 tasks
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@theofidry
Copy link

Describe the bug

When using the autocomplete with forceSelection, if you type something that matches an available option, for instance Wien, but you select a different option from the dropdown, e.g. Wien (Stadt), then the option selected will be Wien instead of Wien (Stadt).

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/ayhdmqmp?file=src%2Fapp%2Fautocomplete-basic-demo.html

Environment

macOS 14.6.1 (23G93)

Angular version

19.0.7

PrimeNG version

v19

Node version

22

Browser(s)

Chrome 131.0.6778.265 (Official Build) (arm64); Firefox 134.0 (aarch64)

Steps to reproduce the behavior

In the Stackblitz

  • Type Wien
  • Select Wien (Stadt)
  • the selected value will be Wien (instead of the expected Wien (Stadt).

Expected behavior

The selected option should be picked instead of the option matching the input.

@theofidry theofidry added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 17, 2025
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