ui_util: Fix incorrectly converted focus method call.

Commit a9ca5f603b (#15863) incorrectly
converted this; el is a DOM element, not a jQuery element.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-21 17:58:29 -07:00 committed by Anders Kaseorg
parent 79d20c7c21
commit 11bde22cb3
1 changed files with 1 additions and 1 deletions

View File

@ -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.trigger("focus");
el.focus();
if (typeof window.getSelection !== "undefined" && typeof document.createRange !== "undefined") {
const range = document.createRange();