diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.js index 2ff4728d6a..cdb5a6366d 100644 --- a/frontend_tests/node_tests/recent_topics.js +++ b/frontend_tests/node_tests/recent_topics.js @@ -317,6 +317,7 @@ run_test("test_recent_topics_launch", () => { rt.process_messages(messages); rt.launch(); + assert.equal($("#recent_topics_search").is(":focus"), true); overlays.close_callback(); // incorrect topic_key diff --git a/static/js/recent_topics.js b/static/js/recent_topics.js index 0a6f4e2247..6a522a1588 100644 --- a/static/js/recent_topics.js +++ b/static/js/recent_topics.js @@ -323,6 +323,7 @@ exports.launch = function () { }, }); recent_topics.complete_rerender(); + $("#recent_topics_search").focus(); }; window.recent_topics = exports;