Skip to content

Commit 8aa1a62

Browse files
committed
feat(pat-autosuggest): load more
syslabcom/scrum#1638
1 parent 6703ac7 commit 8aa1a62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pat/auto-suggest/auto-suggest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ export default Base.extend({
265265
results: (data, page) => {
266266
// parse the results into the format expected by Select2.
267267
// data must be a list of objects with keys "id" and "text"
268-
return { results: data, page: page };
268+
var more = Object.keys(data).length >= 10;
269+
return { results: data, page: page, more: more };
269270
},
270271
},
271272
},

0 commit comments

Comments
 (0)