문제

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();
            }
        });
    }

};
도움이 되었습니까?

해결책

Updated to jquery-ui-1.10.4 and it worked.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top