ui: text and value for #2381

This commit is contained in:
Franco Fichtner 2018-05-16 17:21:07 +02:00
parent bc788f9727
commit dee48af9b1

View File

@ -154,8 +154,9 @@
this.searchInput.on('blur', function(){
if($this.searchInput.val()){
if ($('li.Hover', this.dropdown).length > 0) {
$this.tokenAdd($('li.Hover', this.dropdown).data('text'));
hover_selection = $('li.Hover', this.dropdown);
if (hover_selection.length > 0) {
$this.tokenAdd(hover_selection.attr('data-value'), hover_selection.attr('data-text'));
} else {
$this.tokenAdd($this.searchInput.val(), '');
}