mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 14:17:45 +00:00
added afterRender callback
This commit is contained in:
parent
2c8058a15e
commit
dd3b9558bb
@ -643,6 +643,7 @@
|
||||
container = $(that.suggestionsContainer),
|
||||
noSuggestionsContainer = $(that.noSuggestionsContainer),
|
||||
beforeRender = options.beforeRender,
|
||||
afterRender = options.afterRender,
|
||||
html = '',
|
||||
category,
|
||||
formatGroup = function (suggestion, index) {
|
||||
@ -683,6 +684,10 @@
|
||||
that.fixPosition();
|
||||
container.show();
|
||||
|
||||
if ($.isFunction(afterRender)) {
|
||||
afterRender.call(that.element, container);
|
||||
}
|
||||
|
||||
// Select first value by default:
|
||||
if (options.autoSelectFirst) {
|
||||
that.selectedIndex = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user