corejavascript / corejavascript/typeahead.js
Show suggestions on focus with minLength=0 does not work
- Dominant language
- JavaScript
- Stars
- 968
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to show the first 15 suggestions when the search box is focused. Below is my code and it does not work. Really appreciate any help
````
let searchMaster = $('#searchBoxMaster')
searchMaster.typeahead({
hint: true,
highlight: true,
minLength: 0,
},
{
name: 'Indicators',
source: suggestionName,
limit: 15,
displayKey: 'value',
templates: {
suggestion: function (data) {
return '
+ data.name + '
},
},
});
````
Contributor guide
Assessment
This issue has not been assessed yet.