auto-complete icon indicating copy to clipboard operation
auto-complete copied to clipboard

How to prevent first value being not selected until user press down arrow?

Open venkiit58 opened this issue 8 years ago • 5 comments

Hi Team,

Thanks for this great feature. I'm struggling to fix this on my own. I'd like to prevent selection of very first item in autosuggest dropdown. I want user to press down arrow if they want to change the value.

Current problem is, I've a search results page and autosuggest redirect to corresponding page too. However, when I submit the form without completing full word it redirects to the actual page of the very first word. I want a facility where user can press down arrow if wanted to redirect or redirect them to results page.

Hope this explains the problem.

Thanks, Venkat

venkiit58 avatar May 07 '17 15:05 venkiit58

I would like an answer to this too. Thanks.

shariqs avatar Jun 15 '17 16:06 shariqs

Is there a work around for this issue? I do not want the first item in the drop down to be selected by default - unless the user scrolls and picks that item.. By default the first item in the list is selected and I see that the class for the first li is set to selected --

kattianita avatar Jun 23 '17 16:06 kattianita

I'm currently struggling with this too.

ghost avatar Jul 27 '17 18:07 ghost

This should be fixed on version 0.13.4, please see the referenced PR

ghost avatar Jul 28 '17 19:07 ghost

I can understand that in some cases, the expected behaviour is to not select first item. But it isn't always the case. The PR #240 remove completely the possibility to automatically select first item. Unfortunately, I require this feature (even if it's a bug for the rest of the world).

The PR #244 makes this feature optional.

lemarsu avatar Aug 01 '17 12:08 lemarsu