From 307fde29a50cb2b3d11fe8ed8ee7a16e63882fa2 Mon Sep 17 00:00:00 2001 From: Sebastian Cuy Date: Tue, 17 Jan 2017 18:04:23 +0100 Subject: [PATCH] Fix bug in auto-complete behaviour (see #193) Also see the original typeahead.js issue https://github.com/twitter/typeahead.js/issues/1232 --- resources/assets/js/suggest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/suggest.js b/resources/assets/js/suggest.js index 6c71599..a06b12e 100644 --- a/resources/assets/js/suggest.js +++ b/resources/assets/js/suggest.js @@ -52,7 +52,7 @@ function Suggest(inputPath) { display: 'prefLabel', name: 'subjects', source: subjects, - limit: 7, + limit: Infinity, // needed to circumvent https://github.com/twitter/typeahead.js/issues/1232 templates: templates }).bind('typeahead:select', function(event, subject) { var query = new Query('*', { subjectUri: subject._id, subjectLabel: subject._source.prefLabel });