Skip to content

Commit b94c8eb

Browse files
committed
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 9aa9e0b commit b94c8eb

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)