diff --git a/static/js/ui_util.js b/static/js/ui_util.js index bda79d0be3..e063b6ea50 100644 --- a/static/js/ui_util.js +++ b/static/js/ui_util.js @@ -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();