Skip to content

Commit

Permalink
Fix bug in auto-complete behaviour (see #193)
Browse files Browse the repository at this point in the history
Also see the original typeahead.js issue twitter/typeahead.js#1232
  • Loading branch information
scuy authored Jan 17, 2017
1 parent 1bad985 commit 307fde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/js/suggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 307fde2

Please sign in to comment.