[v19] Autoselect selects the incorrect option if the input matches an available option #17699
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
Describe the bug
When using the autocomplete with
forceSelection
, if you type something that matches an available option, for instanceWien
, but you select a different option from the dropdown, e.g.Wien (Stadt)
, then the option selected will beWien
instead ofWien (Stadt)
.Pull Request Link
No response
Reason for not contributing a PR
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
Wien
Wien (Stadt)
Wien
(instead of the expectedWien (Stadt)
.Expected behavior
The selected option should be picked instead of the option matching the input.
The text was updated successfully, but these errors were encountered: