typeahead.js icon indicating copy to clipboard operation
typeahead.js copied to clipboard

Results hidden for small datasets

Open brw2650 opened this issue 10 years ago • 2 comments

I've found that some of my results are being hidden, sometimes all of them. Changing

 function async(suggestions) {
                    suggestions = suggestions || [];
                    if (!canceled && rendered < that.limit) {
                        that.cancel = $.noop;
                        rendered += suggestions.length;
                        that._append(query, suggestions.slice(0, that.limit - rendered));
                        that.async && that.trigger("asyncReceived", query);
                    }
                }

to

 function async(suggestions) {
                    suggestions = suggestions || [];
                    if (!canceled && rendered < that.limit) {
                        that.cancel = $.noop;
                        that._append(query, suggestions.slice(0, that.limit - rendered));
                        rendered += suggestions.length;
                        that.async && that.trigger("asyncReceived", query);
                    }
                }

has fixed it for me, is this a bug?

brw2650 avatar Feb 25 '16 13:02 brw2650

More discussion at #1415

jk3us avatar Mar 08 '16 17:03 jk3us

Duplicate of #1232

jlbooker avatar Nov 13 '16 00:11 jlbooker