Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_edit: Fix `save/cancel` on message edit form not working.
Aman Agrawal521bb1f722ea
diff --git a/web/src/message_edit.ts b/web/src/message_edit.tsindex 42700a50cad..14ce53fef2e 100644--- a/web/src/message_edit.ts+++ b/web/src/message_edit.ts@@ -512,7 +512,7 @@ function edit_message($row: JQuery, raw_content: string): void {// typeahead to call stopPropagation if it can handle the event// and prevent the form from submitting.$form.on("keydown", (e) => {- if (keydown_util.is_enter_event(e)) {+ if (e.target.classList.contains("message_edit_content") && keydown_util.is_enter_event(e)) {handle_message_edit_enter(e, $message_edit_content);}});