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.

filter-topic: Fix Escape keyboard handling in "Filter topics" input.

Maneesh Shukla021d6cb16912
diff --git a/web/src/topic_list.ts b/web/src/topic_list.ts
index 89b98a1970d..132622aaddf 100644
--- a/web/src/topic_list.ts
+++ b/web/src/topic_list.ts
@@ -389,6 +389,7 @@ export function clear_topic_search(e: JQuery.Event): void {
search_pill_widget?.clear(true);
const $input = $("#topic_filter_query");
+ $input.trigger("blur");
// Since the `clear` function of the search_pill_widget
// takes care of clearing both the text content and the
// pills, we just need to trigger an input event on the