compose: Update recipient placeholder when topic input changes.

This commit is contained in:
evykassirer 2023-10-02 13:05:39 -07:00 committed by Tim Abbott
parent c5c5b18ab4
commit e578773ac9
1 changed files with 4 additions and 0 deletions

View File

@ -786,6 +786,10 @@ export function initialize() {
compose_recipient.update_placeholder_text();
});
$("#stream_message_recipient_topic").on("input", () => {
compose_recipient.update_placeholder_text();
});
$("body").on("click", ".formatting_button", (e) => {
const $compose_click_target = $(compose_ui.get_compose_click_target(e));
const $textarea = $compose_click_target.closest("form").find("textarea");