mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +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
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user