Merge pull request #2633 from alecmerdler/fix-typeahead-template

Fix jQuery Typeahead Template Bug
This commit is contained in:
Alec Merdler 2017-05-09 13:14:10 -07:00 committed by GitHub
commit 977ae7a809

View file

@ -80,7 +80,7 @@ angular.module('quay').directive('dropdownSelect', function ($compile) {
source: dropdownHound.ttAdapter(),
templates: {
'suggestion': function (datum) {
template = datum['template'] ? datum['template'](datum) : datum['value'];
template = datum['template'] ? datum['template'](datum) : '<span>' + datum['value'] + '</span>';
return template;
}
}