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

No suggestions appear if the response count is equal to the limit #1653

Closed
wants to merge 1 commit into from
Closed

Conversation

SteppingHat
Copy link

When the number of suggestions within the JSON response is equal to the suggestion limit, the suggestions are essentially nulled, therefore no suggestions would appear. A slice function was the root cause of this, creating a new suggestions object of size limit - rendered, which would result in 0 in this case. This has been removed and suggestions now appear when the number of results is the same as the limit.

patrickhrastnik added a commit to HolterDev/typeahead.js that referenced this pull request Jul 30, 2017
I think this might be a valid solution for twitter#1661 (and twitter#1653 )
@patrickhrastnik patrickhrastnik mentioned this pull request Jul 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant