オプションのリストをスクロールすると、強調表示されている値が検索ボックスに表示されません。jquery-ui バージョン 1.10.3 を使用しています。キーボードで選択すると正しく動作します。
コード:
_createAutocomplete: function () {
var selected = this.element.children(":selected"),
selectedvalue = selected.text()
? selected.text() : "";
this.input = $("<input>")
.appendTo(this.wrapper)
.val(selectedvalue)
.attr("title", "")
.addClass("custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left")
.autocomplete({
minLength: 4,
source: $.proxy(this, "_source")
})
.tooltip({
tooltipClass: "ui-state-highlight"
});
this._on(this.input, {
autocompleteselect: function (event, orgselect) {
var newvar = this.input.val();
$("#control option").filter(function () {
return this.value == newvar;
}).attr('selected', true);
this.input.val($("#control option:selected").text());
},
autocompletechange: "_removeIfInvalid"
});