mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
js: Replace deprecated jQuery event trigger shorthand.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
4e42137bd9
commit
a9ca5f603b
@@ -7,7 +7,7 @@ exports.change_tab_to = function (tabname) {
|
||||
|
||||
// https://stackoverflow.com/questions/4233265/contenteditable-set-caret-at-the-end-of-the-text-cross-browser
|
||||
exports.place_caret_at_end = function (el) {
|
||||
el.focus();
|
||||
el.trigger("focus");
|
||||
|
||||
if (typeof window.getSelection !== "undefined" && typeof document.createRange !== "undefined") {
|
||||
const range = document.createRange();
|
||||
|
||||
Reference in New Issue
Block a user