mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 22:27:39 +00:00
fix for scroll on autoselect first item
This commit is contained in:
parent
505485e717
commit
b34fc5d9c7
@ -661,6 +661,7 @@
|
||||
// Select first value by default:
|
||||
if (options.autoSelectFirst) {
|
||||
that.selectedIndex = 0;
|
||||
container.scrollTop(0);
|
||||
container.children().first().addClass(classSelected);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user