Updated to jquery-ui-1.10.4 and it worked.
Autocomplete doesn't work after updating jquery-ui version
-
04-10-2022 - |
Question
I updated jquery-ui from an old version to 1.10.3 and now autocomplete In the firebug's console window I can see the query result from the server as json but I can't see the widget. After checking - It seems that everything is working but the widget stays with "display: none".
ko.bindingHandlers.autoComplete = {
init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
$(element).autocomplete({
minLength: 0,
autoFocus: true,
source: function (request, response) {
response(valueAccessor().source(request.term));
},
select: function (event, ui) {
allBindingsAccessor().value(ui.item.label);
if (valueAccessor().afterSelect) {
valueAccessor().afterSelect(allBindingsAccessor().value);
}
$(this).blur();
}
});
}
};
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow