jQuery typeahead suggestion template needs to be valid HTML markup

This commit is contained in:
alecmerdler 2017-05-09 12:25:21 -07:00
parent 191e5d94d4
commit 481daff85d

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;
}
}