Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Fix cursor position loss in quote-and-reply.
Tim Abbott25c9b05bd0ec
diff --git a/static/js/compose_actions.js b/static/js/compose_actions.jsindex 7bbea452644..e44c35fa695 100644--- a/static/js/compose_actions.js+++ b/static/js/compose_actions.js@@ -482,8 +482,6 @@ export function quote_and_reply(opts) {respond_to_message(opts);}- const prev_caret = textarea.caret();-compose_ui.insert_syntax_and_focus("[Quoting…]\n", textarea);function replace_content(message) {@@ -492,6 +490,7 @@ export function quote_and_reply(opts) {// ```quote// message content// ```+ const prev_caret = textarea.caret();let content = $t({defaultMessage: "{username} [said]({link_to_message}):"},{