We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6e409f + 3048f48 commit 75879a8Copy full SHA for 75879a8
src/jquery.autocomplete.js
@@ -669,21 +669,21 @@
669
noSuggestionsContainer.detach();
670
container.html(html);
671
672
- // Select first value by default:
673
- if (options.autoSelectFirst) {
674
- that.selectedIndex = 0;
675
- container.children().first().addClass(classSelected);
676
- }
677
-
678
if ($.isFunction(beforeRender)) {
679
beforeRender.call(that.element, container);
680
}
681
682
that.fixPosition();
683
684
container.show();
685
- that.visible = true;
686
+ // Select first value by default:
+ if (options.autoSelectFirst) {
+ that.selectedIndex = 0;
+ container.scrollTop(0);
+ container.children().first().addClass(classSelected);
+ }
+
+ that.visible = true;
687
that.findBestHint();
688
},
689
0 commit comments