Set autofocus when we have a selected item
See original GitHub issueThis is not so much an issue as a feature request, but could be considered both ways
Lets say we setup an auto-complete like this:
Steps to reproduce and a minimal demo
<input ngui-auto-complete
[formControl]="continent"
[source]="continents"
[list-formatter]="autocompleListFormatter"
value-property-name="id"
display-property-name="name"
placeholder="Contients"
class="form-control"
tab-to-select="true"
(keyup.enter)="search()">
http://plnkr.co/edit/ezq5Q6?p=preview
Current behavior
So the user should be able to navigate comfortably without using the mouse to select nor to execute onClick functions, but the issue here is that the input box doesn’t have focus, not on mouse selection, not on tab selection, it actually moves on to the next UI item when hitting tab (it does its job by selecting the appropriate item, but focus jumps on to next item)
Expected/desired behavior
It would be ideal to have the focus stay on the input element all the time the user has selected an item, via mouse click &/0r enter, it would be much more user-friendly and intuitive
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
I have made change and released, plz check.
Hey ! is it possible to publish the new versions on npmjs please? https://www.npmjs.com/package/ng2-auto-complete Last one is version 12.
We are on angular 4 so if it’s possible to publish not only the most recent ones but also the others, it would be kind.
Thanks in advance.