typeahead.js
typeahead.js copied to clipboard
Issue when suggestions has same items than default limit to show
When typing, is the come up result has the same number of items than the limit length, then it doesn't show any option even when there is data within the suggestions. For example, if the limit is 5 and suggestions has 5 five items, it won't show anything.
The issue is happening in the "async(suggestion)" function.
For fixing it I just changed the line within the function from being:
that._append(query, suggestions.slice(0, that.limit - rendered));
To be:
that._append(query, suggestions.slice(0, that.limit));
Same issue observed here
This looks like a duplicate of ticket #1324. Which version are you experiencing this with?