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 buggy refocusing of compose box on close.

Tim Abbott4e1525d7c411
diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js
index f53f454731f..7904163fdd4 100644
--- a/static/js/compose_actions.js
+++ b/static/js/compose_actions.js
@@ -290,7 +290,9 @@ export function start(msg_type, opts) {
export function cancel() {
// As user closes the compose box, restore the compose box max height
- compose_ui.make_compose_box_original_size();
+ if (compose_ui.is_full_size()) {
+ compose_ui.make_compose_box_original_size();
+ }
$("#compose-textarea").height(40 + "px");