mirror of https://github.com/zulip/zulip.git
bootstrap_typeahead: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
9ad8ca4223
commit
8cec7dd917
|
@ -471,7 +471,7 @@ export class Typeahead<ItemType extends string | object> {
|
|||
let $next = $active.next();
|
||||
|
||||
if (!$next.length) {
|
||||
$next = $(this.$menu.find("li")[0]);
|
||||
$next = this.$menu.find("li").first();
|
||||
}
|
||||
|
||||
$next.addClass("active");
|
||||
|
|
Loading…
Reference in New Issue