Skip to content

Commit 3af1f6c

Browse files
galo2099scottgonzalez
authored andcommitted
Autocomplete: changed menu activated function to check if the offset is greater than or equal the height. Fixed #5923 - autocomplete: Scrolling with the keyboard sometimes does not show the item (Chrome)
1 parent 9a4eecd commit 3af1f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ $.widget("ui.menu", {
429429
elementHeight = this.element.height();
430430
if (offset < 0) {
431431
this.element.attr("scrollTop", scroll + offset);
432-
} else if (offset > elementHeight) {
432+
} else if (offset >= elementHeight) {
433433
this.element.attr("scrollTop", scroll + offset - elementHeight + item.height());
434434
}
435435
}

0 commit comments

Comments
 (0)