bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

[typeahead] reopen result dropdown on onFocus (feature request/enhancement)

Open joh-klein opened this issue 9 years ago • 6 comments

We have the following use case:

  • user starts typing, dropdown opens and shows results
  • user clicks out of the input field (nothing is deleted from the input field), dropdown closes
  • user clicks back into the typeahead input field (and does NOT start to type anything) and nothing happens. → the desired behavior is: dropdown opens again and shows the same result list as last time (of course, that only happens, if there is anything in the input field)

So, maybe a typeahead-search-on-focus setting?

Behavior is similar to the search field in Firefox.

joh-klein avatar Jun 23 '16 13:06 joh-klein

I have same issue...

one more thing to add,

  • When user search anything and if result found and focus lost occurs and string does not get cleared again focus nothing happen, no hints..
  • When user seach anything and if result not found and focus lost occurs string get cleared and there is also message of no data found.

So, Moral of the story is that in first case sring should get cleared if it is not selected from list and it is substring of list string...

SagarNaliyapara avatar Jul 27 '16 11:07 SagarNaliyapara

I agree — this is what makes the most sense. The dropdown was visible when the user was typing before losing focus. So when regaining focus, the user would expect to see it become visible again.

If it's undesirable because of the possible use case of the user tabbing through form fields, and the dropdowns making "too much happen", then at least we could do this: make the dropdown able to be triggered with a "Down" keypress.

matthias-ccri avatar Aug 04 '16 19:08 matthias-ccri

+1

shyamal890 avatar Mar 06 '17 18:03 shyamal890

+1

dfengpo avatar Sep 15 '17 06:09 dfengpo

+1

nicholaspoz avatar Oct 20 '17 00:10 nicholaspoz

+1

dharanid avatar Apr 10 '18 09:04 dharanid