Skip to content

Commit 3048f48

Browse files
author
dima
committed
always work only after the show() method
1 parent b34fc5d commit 3048f48

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/jquery.autocomplete.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -658,22 +658,21 @@
658658
noSuggestionsContainer.detach();
659659
container.html(html);
660660

661+
if ($.isFunction(beforeRender)) {
662+
beforeRender.call(that.element, container);
663+
}
664+
665+
that.fixPosition();
666+
container.show();
667+
661668
// Select first value by default:
662669
if (options.autoSelectFirst) {
663670
that.selectedIndex = 0;
664671
container.scrollTop(0);
665672
container.children().first().addClass(classSelected);
666673
}
667674

668-
if ($.isFunction(beforeRender)) {
669-
beforeRender.call(that.element, container);
670-
}
671-
672-
that.fixPosition();
673-
674-
container.show();
675675
that.visible = true;
676-
677676
that.findBestHint();
678677
},
679678

0 commit comments

Comments
 (0)