Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Don't select compose input field after focus.
evykassirer92e24a97273e
diff --git a/web/src/compose_ui.js b/web/src/compose_ui.jsindex 526967583a2..9ce109f169f 100644--- a/web/src/compose_ui.js+++ b/web/src/compose_ui.js@@ -57,10 +57,12 @@ function get_focus_area(msg_type, opts) {export const _get_focus_area = get_focus_area;export function set_focus(msg_type, opts) {+ // Called mainly when opening the compose box or switching the+ // message type to set the focus in the first empty input in the+ // compose box.if (window.getSelection().toString() === "" || opts.trigger !== "message click") {const focus_area = get_focus_area(msg_type, opts);- const $elt = $(focus_area);- $elt.trigger("focus").trigger("select");+ $(focus_area).trigger("focus");}}