xcash/bootstrap-autocomplete

tab key triggers search

Opened this issue · 1 comments

I don't understand why, but when my select autocomplete got focus via a TAB, it triggers a search event and the dropdown is shown.

This is a problem in a edit form. In this case the autocomplete field is prefilled with the previouly saved value.
If the user browses the form with the tab key, when the autocomplete gets the focus, the dropdown appears and if the user hit the tab key again, the autocomplete is cleared but the user didn't request any changes !!

Setting the focus on the autocomplete via the mouse click doesn't have the same behavior

How could I get around this problem ?
Thank you

xcash commented

Linked to #114