From 2d414fa897d4c8454acc01a74823d4110fde9a4a Mon Sep 17 00:00:00 2001 From: yasiruRathnayaka97 <57071700+yasiruRathnayaka97@users.noreply.github.com> Date: Thu, 18 Mar 2021 03:41:23 +0530 Subject: [PATCH] left-sidebar: Fix 3-points-menu responsive bug. In responsive narrow windows where the left sidebar is an overlay, clicking the \vdots menus for 'All messages' and 'Starred messages' would result in the navigation closing and the menu appearing somewhere weird. We fix this the same way that we address this issue with the similar stream/topic menus, by calling the function to show this sidebar after closing all popovers. Fixes: #17537. --- static/js/stream_popover.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js index 40a72cbfe0..db858d3733 100644 --- a/static/js/stream_popover.js +++ b/static/js/stream_popover.js @@ -268,6 +268,7 @@ function build_all_messages_popover(e) { } popovers.hide_all(); + exports.show_streamlist_sidebar(); const content = render_all_messages_sidebar_actions(); @@ -293,6 +294,7 @@ function build_starred_messages_popover(e) { } popovers.hide_all(); + exports.show_streamlist_sidebar(); const content = render_starred_messages_sidebar_actions({ starred_message_counts: page_params.starred_message_counts,