2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

fix for scroll on autoselect first item

This commit is contained in:
dima 2014-10-03 15:08:59 +04:00
parent 505485e717
commit b34fc5d9c7

View File

@ -661,6 +661,7 @@
// Select first value by default:
if (options.autoSelectFirst) {
that.selectedIndex = 0;
container.scrollTop(0);
container.children().first().addClass(classSelected);
}