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

Set minLength 0, keyboard "Downward Arrow" not working find. #227

Open
reginna-chao opened this issue Dec 14, 2020 · 1 comment
Open

Set minLength 0, keyboard "Downward Arrow" not working find. #227

reginna-chao opened this issue Dec 14, 2020 · 1 comment

Comments

@reginna-chao
Copy link

reginna-chao commented Dec 14, 2020

Set minLength to 0.
And I couldn't select the keyword, when I focused input and used "Downward Arrow".

Test JSFiddle

flexdatalist_bug_minLength0

This my code:

<input type='text'
   placeholder='Programming language name'
   class='flexdatalist'
   list='languages'
   name='language'>

<datalist id="languages">
    <option value="PHP">PHP</option>
    <option value="JavaScript">JavaScript</option>
    <option value="Cobol">Cobol</option>
    <option value="C#">C#</option>
    <option value="C++">C++</option>
    <option value="Java">Java</option>
    <option value="Pascal">Pascal</option>
    <option value="FORTRAN">FORTRAN</option>
    <option value="Lisp">Lisp</option>
    <option value="Swift">Swift</option>
</datalist>
<script>
	$('.flexdatalist').flexdatalist({
		minLength: 0,
		maxShownResults: 10
	});
</script>

How could I fix this bug?

@dhanesh-dev
Copy link

Any update on this? I've the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants