Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Dont focus first item from sticky bottom if not exists.
Shubham Padia26de76706f6b
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.tsindex cbc6a3c727a..7a0923a6ab7 100644--- a/web/src/dropdown_widget.ts+++ b/web/src/dropdown_widget.ts@@ -472,9 +472,9 @@ export class DropdownWidget {};const handle_arrow_down_on_sticky_bottom_option = (): void => {- if (this.hide_search_box) {+ if (this.hide_search_box && list_items.length > 0) {trigger_element_focus(first_item());- } else {+ } else if (!this.hide_search_box) {trigger_element_focus($search_input);}};