mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
compose: Fix enter returning user to preview mode.
I'm not sure whether the bug this fixes was a regression resulting
from d6d3683da0, or an old bug, but
focusing the compose box is not sufficient to end preview mode; we
should be calling the function that's explicitly for that.
This commit is contained in:
@@ -273,8 +273,8 @@ export function enter_with_preview_open() {
|
|||||||
// If enter_sends is enabled, we attempt to send the message
|
// If enter_sends is enabled, we attempt to send the message
|
||||||
finish();
|
finish();
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, we return to the compose box and focus it
|
// Otherwise, we return to the normal compose state.
|
||||||
$("#compose-textarea").trigger("focus");
|
clear_preview_area();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user