From 1ae00a306b04b3189696863bb312a4e4d6529c8b Mon Sep 17 00:00:00 2001 From: sahil839 Date: Sat, 4 Jul 2020 01:50:57 +0530 Subject: [PATCH] settings: Hide open popovers when switching panels in settings overlay. This is a prep commit for changing the bots list page to show normal user popover instead of extended profile one. This is added so that any open popovers are closed while switching panels in settings overlay. This change was not needed previously because we were using modal for showing extended user profile. Now as we would be adding popover, we would need this change to close the open popovers while switching panels in settings overlay. --- static/js/settings_panel_menu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/settings_panel_menu.js b/static/js/settings_panel_menu.js index 07ab9e147d..03e38d2c09 100644 --- a/static/js/settings_panel_menu.js +++ b/static/js/settings_panel_menu.js @@ -84,6 +84,7 @@ class SettingsPanelMenu { } activate_section_or_default(section) { + popovers.hide_all(); if (!section) { // No section is given so we display the default.