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

Issue #1661 #1662

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/typeahead.bundle.js
Expand Up @@ -1720,8 +1720,8 @@
suggestions = suggestions || [];
if (!canceled && rendered < that.limit) {
that.cancel = $.noop;
rendered += suggestions.length;
that._append(query, suggestions.slice(0, that.limit - rendered));
rendered += suggestions.length;
that.async && that.trigger("asyncReceived", query);
}
}
Expand Down Expand Up @@ -2448,4 +2448,4 @@
return $el.length ? $el : null;
}
})();
});
});
4 changes: 2 additions & 2 deletions dist/typeahead.bundle.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/typeahead.jquery.js
Expand Up @@ -807,8 +807,8 @@
suggestions = suggestions || [];
if (!canceled && rendered < that.limit) {
that.cancel = $.noop;
rendered += suggestions.length;
that._append(query, suggestions.slice(0, that.limit - rendered));
rendered += suggestions.length;
that.async && that.trigger("asyncReceived", query);
}
}
Expand Down Expand Up @@ -1535,4 +1535,4 @@
return $el.length ? $el : null;
}
})();
});
});
2 changes: 1 addition & 1 deletion dist/typeahead.jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/typeahead/dataset.js
Expand Up @@ -269,8 +269,8 @@ var Dataset = (function() {
// do not render the suggestions as they've become outdated
if (!canceled && rendered < that.limit) {
that.cancel = $.noop;
rendered += suggestions.length;
that._append(query, suggestions.slice(0, that.limit - rendered));
rendered += suggestions.length;

that.async && that.trigger('asyncReceived', query);
}
Expand Down