Merge pull request #1765 from reap3r119/fix-proposals

Fix user proposals and update typeahead
This commit is contained in:
Naoki Takezoe
2017-11-04 23:15:59 +01:00
committed by GitHub
3 changed files with 629 additions and 623 deletions

View File

@@ -17,6 +17,12 @@ $(function(){
function (data) {
return process(data.options);
});
},
displayText: function(item) {
return item.label;
},
afterSelect: function(item) {
$('#@id').val(item.value);
}
});
});

View File

@@ -398,7 +398,7 @@
prev.addClass('active');
// added for screen reader
var newVal = this.updater(next.data('value'));
var newVal = this.updater(prev.data('value'));
this.$element.val(this.displayText(newVal) || newVal);
},

File diff suppressed because one or more lines are too long