Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Fix disabled buttons after exiting preview mode in edit UI.
Aditya Kumar Kasaudhanb2ab77746b39
diff --git a/web/src/message_edit.ts b/web/src/message_edit.tsindex fe194bcb6ec..9d393f4c35b 100644--- a/web/src/message_edit.ts+++ b/web/src/message_edit.ts@@ -847,6 +847,11 @@ export function end_message_row_edit($row: JQuery): void {// Clean up the upload handlerupload.deactivate_upload(upload.edit_config(row_id));+ // Check if the row is in preview mode, and clear the preview area if it is.+ if ($row.hasClass("preview_mode")) {+ clear_preview_area($row);+ }+const message = message_lists.current.get(row_id);if (message !== undefined && currently_editing_messages.has(message.id)) {currently_editing_messages.delete(message.id);