Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Up on 1st item must go to sticky button if no search.
Shubham Padiab973bb8e6f38
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.tsindex 7a0923a6ab7..ffb150fd754 100644--- a/web/src/dropdown_widget.ts+++ b/web/src/dropdown_widget.ts@@ -523,8 +523,12 @@ export class DropdownWidget {const handle_arrow_up_on_first_item = (): void => {if (this.hide_search_box) {- render_all_items();- trigger_element_focus(last_item());+ if (this.sticky_bottom_option) {+ trigger_element_focus($sticky_bottom_option);+ } else {+ render_all_items();+ trigger_element_focus(last_item());+ }} else {trigger_element_focus($search_input);}