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: Fix enter returning user to preview mode.

Tim Abbott745b96ea4629
diff --git a/static/js/compose.js b/static/js/compose.js
index 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 message
finish();
} 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();
}
}