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:
parent
505485e717
commit
b34fc5d9c7
@ -661,6 +661,7 @@
|
|||||||
// Select first value by default:
|
// Select first value by default:
|
||||||
if (options.autoSelectFirst) {
|
if (options.autoSelectFirst) {
|
||||||
that.selectedIndex = 0;
|
that.selectedIndex = 0;
|
||||||
|
container.scrollTop(0);
|
||||||
container.children().first().addClass(classSelected);
|
container.children().first().addClass(classSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user