Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox_typeahead: Focus composebox when topic is selected.
Evy Kassirer4751740d3c4b
diff --git a/web/src/composebox_typeahead.ts b/web/src/composebox_typeahead.tsindex f10484b635e..19c521eb851 100644--- a/web/src/composebox_typeahead.ts+++ b/web/src/composebox_typeahead.ts@@ -1535,6 +1535,11 @@ export function initialize({}return sorted;},+ updater(item: string, _query: string): string {+ $("textarea#compose-textarea").trigger("focus");+ $nextFocus = undefined;+ return item;+ },option_label(matching_items: string[], item: string): string | false {if (!matching_items.includes(item)) {return `<em>${$t({defaultMessage: "New"})}</em>`;