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

Feature request: autocomplete with auto select first option on blur #261

Open
daniel-sc opened this issue Jan 27, 2020 · 2 comments · Fixed by #1222
Open

Feature request: autocomplete with auto select first option on blur #261

daniel-sc opened this issue Jan 27, 2020 · 2 comments · Fixed by #1222
Labels
comp: lean Issues related to @sbb-esta/angular lean design effort1: hours enhancement New feature or request prio4: low Should be done after all higher priorities are done

Comments

@daniel-sc
Copy link
Contributor

Is your feature request related to a problem? Please describe.
To enable faster user input, in our application the first match should automatically be selected when the user leaves an input/autocomplete.

Describe the solution you'd like
There should be an attribute autoSelectFirst (default false) that enables the desired behavior.

Describe alternatives you've considered
We are currently working around this, but this is tedious, as the blur event comes before the "selected event".

@daniel-sc daniel-sc added the enhancement New feature or request label Jan 27, 2020
@kyubisation kyubisation added comp: lean Issues related to @sbb-esta/angular lean design effort1: hours prio4: low Should be done after all higher priorities are done labels Jan 27, 2020
@jeripeierSBB
Copy link
Collaborator

@daniel-sc Please re open if our new configuration possibilities don't solve your problem. maybe you have to combine "autoActiveFirstOption" with the new "autoSelectActiveOption" option.

@daniel-sc
Copy link
Contributor Author

@jeripeierSBB I know this is late - but it seems the suggested configuration does not solve this: https://stackblitz.com/edit/angular-bvwhrj?file=src/app/autocomplete-reactive-forms-example.html

autoselect-in-autocomplete

@mhaertwig mhaertwig reopened this Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: lean Issues related to @sbb-esta/angular lean design effort1: hours enhancement New feature or request prio4: low Should be done after all higher priorities are done
Projects
None yet
4 participants