Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Fix enter returning user to preview mode.
Tim Abbott745b96ea4629
diff --git a/static/js/compose.js b/static/js/compose.jsindex 100d08c355b..cbe7084ba9e 100644--- a/static/js/compose.js+++ b/static/js/compose.js@@ -273,8 +273,8 @@ export function enter_with_preview_open() {// If enter_sends is enabled, we attempt to send the messagefinish();} else {- // Otherwise, we return to the compose box and focus it- $("#compose-textarea").trigger("focus");+ // Otherwise, we return to the normal compose state.+ clear_preview_area();}}