Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose-recipients: Resize compose box text area for placeholder.
Lauryn Menard8301dcd4211a
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.tsindex 8b4348ca763..21d46a4e0ab 100644--- a/web/src/compose_recipient.ts+++ b/web/src/compose_recipient.ts@@ -328,8 +328,9 @@ export function initialize(): void {}export function update_placeholder_text(): void {+ const $textarea: JQuery<HTMLTextAreaElement> = $("textarea#compose-textarea");// Change compose placeholder text only if compose box is open.- if (!$("textarea#compose-textarea").is(":visible")) {+ if (!$textarea.is(":visible")) {return;}const message_type = compose_state.get_message_type();@@ -349,5 +350,6 @@ export function update_placeholder_text(): void {});}- $("textarea#compose-textarea").attr("placeholder", placeholder);+ $textarea.attr("placeholder", placeholder);+ compose_ui.autosize_textarea($textarea);}