Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

Partially revert "compose: Ensure cursor is scrolled into view after content is inserted."

Tim Abbott2ac443dd2ffa
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js
index 086e1a0147c..55e513dcc35 100644
--- a/web/third/bootstrap-typeahead/typeahead.js
+++ b/web/third/bootstrap-typeahead/typeahead.js
@@ -200,9 +200,6 @@ import {get_string_diff} from "../../src/util";
// select / highlight the minimal text to be replaced
this.$element[0].setSelectionRange(from, to_before);
insert(this.$element[0], replacement);
- // Blurring and refocusing ensures the cursor is in view.
- this.$element.trigger("blur");
- this.$element.trigger("focus");
}
return this.hide()