Search code examples
javascripttwitter-bootstrap-3typeahead.js

Twitter Typeahead.js: show all options when click/focus


I'm using Typeahead.js in an autocomplete text input, and it's great. But I need to activate the dropdown menu with all the available options when the input gets focus. Every possible solution I've seen involves initializing the input with some value, but I need to show all the options.

How could I achieve this?


Solution

  • You need to use the option minLength: 0

    Note:

    There's a pull request which solved this issue