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.

popovers: Hide popovers during scroll in recent_conversations.

Lakshay Mittalce578423f84c
diff --git a/web/src/recent_topics_ui.js b/web/src/recent_topics_ui.js
index f569f00fab5..041263e848b 100644
--- a/web/src/recent_topics_ui.js
+++ b/web/src/recent_topics_ui.js
@@ -852,7 +852,13 @@ export function complete_rerender() {
$simplebar_container: $("#recent_topics_table .table_fix_head"),
callback_after_render: () => setTimeout(revive_current_focus, 0),
is_scroll_position_for_render,
- post_scroll__pre_render_callback: set_focus_to_element_in_center,
+ post_scroll__pre_render_callback() {
+ // Hide popovers on scroll in recent conversations.
+ popovers.hide_all();
+
+ // Update the focused element for keyboard navigation if needed.
+ set_focus_to_element_in_center();
+ },
get_min_load_count,
});
}