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.

compose: Prevent lingering textarea typeahead after sending message.

Aman Agrawal29048bf19a3d
diff --git a/web/src/compose.js b/web/src/compose.js
index bc2a743b25f..b84c0f800d9 100644
--- a/web/src/compose.js
+++ b/web/src/compose.js
@@ -130,6 +130,7 @@ export function clear_compose_box() {
compose_ui.make_compose_box_original_size();
}
$("textarea#compose-textarea").val("").trigger("focus");
+ compose_ui.compose_textarea_typeahead?.hide();
compose_validate.check_overflow_text();
compose_validate.clear_topic_resolved_warning();
drafts.set_compose_draft_id(undefined);