Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent_topics: Fix partially hidden row sometimes in recent topics.

Aman Agrawal5d4217ffc9d1
diff --git a/static/js/recent_topics.js b/static/js/recent_topics.js
index 085b81bf275..8d40f9a8048 100644
--- a/static/js/recent_topics.js
+++ b/static/js/recent_topics.js
@@ -66,7 +66,10 @@ function set_table_focus(row, col) {
return true;
}
- topic_rows.eq(row).find(".recent_topics_focusable").eq(col).children().trigger("focus");
+ // Setting focus after the render is complete doesn't partially hide the row from view.
+ setTimeout(() => {
+ topic_rows.eq(row).find(".recent_topics_focusable").eq(col).children().trigger("focus");
+ }, 0);
current_focus_elem = "table";
return true;
}