Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed rendered item counts for async remote typeahead. #1367
Alleviates issue of initial suggestions being of same count as the limit and incorrectly displaying 0 results.
Previously had the server returning 5 objects and with a limit of 5, the rendered count would increase and then splice the suggestions into an empty array -- clearly not intended functionality. An item should only be counted as rendered after it is rendered.