Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

search: Be able to continue typing after adding pills.

Ryan Rehman6ce43f3ede08
diff --git a/static/js/tab_bar.js b/static/js/tab_bar.js
index 8396343bef8..62d2e0b8ea4 100644
--- a/static/js/tab_bar.js
+++ b/static/js/tab_bar.js
@@ -114,7 +114,11 @@ function build_tab_bar(filter) {
const tab_bar_data = make_tab_data(filter);
append_and_display_title_area(tab_bar_data);
bind_title_area_handlers();
- exports.close_search_bar_and_open_narrow_description();
+ if (page_params.search_pills_enabled && $('#search_query').is(':focus')) {
+ exports.open_search_bar_and_close_narrow_description();
+ } else {
+ exports.close_search_bar_and_open_narrow_description();
+ }
}
}