-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 clears selected item on blur #9378
Comments
Workaround based on autocomplete showcase stackblitz: ts (added viewchild and AfterViewInit): https://stackblitz.com/edit/primeng-autocomplete-demo-jmejyt?file=src/app/app.component.html |
Thanks for workaround. |
I am facing the same issue. Thanks, @cyprianno for the workaround. |
Thanks, @cyprianno! For posterity and convenience, I'm copying the workaround to the issue's comments:
|
I'm curently working on a project that have too many autocompletes, making the workaround unviable. |
We have the same problem, the worst of it is that we have more than 10000 autocompletes in the application, the palliative solution does not help us |
I hope that this bug gets fixed soon. We are also using more than few autocompletes. |
It is fixed in 11.0.0 (and LTS) with fixing issue #8740 |
Thanks, closing. |
I tried the solution, for me the autocomplete resolves to undefined |
The issue remains in V14.1.1. Unfortunately, the workaround doesn't work either since there seems to have been an update on Would appreciate any suggestions or alternative workarounds ... Or even better an update. |
I'm submitting a ... (check one with "x")
Current behavior
If user picks item by pressing enter and [forceSelection]="true", the selected item is cleared on blur event.
Expected behavior
The selected item should not be cleared.
The text was updated successfully, but these errors were encountered: