Skip to content

Commit b34fc5d

Browse files
author
dima
committed
fix for scroll on autoselect first item
1 parent 505485e commit b34fc5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@
661661
// Select first value by default:
662662
if (options.autoSelectFirst) {
663663
that.selectedIndex = 0;
664+
container.scrollTop(0);
664665
container.children().first().addClass(classSelected);
665666
}
666667

0 commit comments

Comments
 (0)