mirror of https://github.com/zulip/zulip.git
recent_topics: Set focus on input element on launch.
This commit is contained in:
parent
ec00e39e45
commit
9b9154be91
|
@ -317,6 +317,7 @@ run_test("test_recent_topics_launch", () => {
|
||||||
rt.process_messages(messages);
|
rt.process_messages(messages);
|
||||||
|
|
||||||
rt.launch();
|
rt.launch();
|
||||||
|
assert.equal($("#recent_topics_search").is(":focus"), true);
|
||||||
overlays.close_callback();
|
overlays.close_callback();
|
||||||
|
|
||||||
// incorrect topic_key
|
// incorrect topic_key
|
||||||
|
|
|
@ -323,6 +323,7 @@ exports.launch = function () {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
recent_topics.complete_rerender();
|
recent_topics.complete_rerender();
|
||||||
|
$("#recent_topics_search").focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
window.recent_topics = exports;
|
window.recent_topics = exports;
|
||||||
|
|
Loading…
Reference in New Issue