jQuery typeahead suggestion template needs to be valid HTML markup
This commit is contained in:
parent
191e5d94d4
commit
481daff85d
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ angular.module('quay').directive('dropdownSelect', function ($compile) {
|
||||||
source: dropdownHound.ttAdapter(),
|
source: dropdownHound.ttAdapter(),
|
||||||
templates: {
|
templates: {
|
||||||
'suggestion': function (datum) {
|
'suggestion': function (datum) {
|
||||||
template = datum['template'] ? datum['template'](datum) : datum['value'];
|
template = datum['template'] ? datum['template'](datum) : '<span>' + datum['value'] + '</span>';
|
||||||
return template;
|
return template;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue