diff --git a/web/src/bootstrap_typeahead.ts b/web/src/bootstrap_typeahead.ts index 7c82f52973..f9692720ef 100644 --- a/web/src/bootstrap_typeahead.ts +++ b/web/src/bootstrap_typeahead.ts @@ -471,7 +471,7 @@ export class Typeahead { let $next = $active.next(); if (!$next.length) { - $next = $(this.$menu.find("li")[0]); + $next = this.$menu.find("li").first(); } $next.addClass("active");