mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 14:17:45 +00:00
always work only after the show() method
This commit is contained in:
parent
b34fc5d9c7
commit
3048f48d1b
@ -658,6 +658,13 @@
|
|||||||
noSuggestionsContainer.detach();
|
noSuggestionsContainer.detach();
|
||||||
container.html(html);
|
container.html(html);
|
||||||
|
|
||||||
|
if ($.isFunction(beforeRender)) {
|
||||||
|
beforeRender.call(that.element, container);
|
||||||
|
}
|
||||||
|
|
||||||
|
that.fixPosition();
|
||||||
|
container.show();
|
||||||
|
|
||||||
// Select first value by default:
|
// Select first value by default:
|
||||||
if (options.autoSelectFirst) {
|
if (options.autoSelectFirst) {
|
||||||
that.selectedIndex = 0;
|
that.selectedIndex = 0;
|
||||||
@ -665,15 +672,7 @@
|
|||||||
container.children().first().addClass(classSelected);
|
container.children().first().addClass(classSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($.isFunction(beforeRender)) {
|
|
||||||
beforeRender.call(that.element, container);
|
|
||||||
}
|
|
||||||
|
|
||||||
that.fixPosition();
|
|
||||||
|
|
||||||
container.show();
|
|
||||||
that.visible = true;
|
that.visible = true;
|
||||||
|
|
||||||
that.findBestHint();
|
that.findBestHint();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user