corejavascript / corejavascript/typeahead.js

Show suggestions on focus with minLength=0 does not work

Open
#237 0 comments 0 reactions 0 assignees View on GitHub
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 '

';
},
},

});
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.