mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
composebox_typeahead: Focus composebox when topic is selected.
Fixes bug reported here: https://chat.zulip.org/#narrow/channel/9-issues/topic/focus.20after.20choosing.20from.20topic.20typeahead/near/2180336
This commit is contained in:
@@ -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>`;
|
||||
|
||||
Reference in New Issue
Block a user