mirror of https://github.com/zulip/zulip.git
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.
This commit is contained in:
parent
05bf72a75c
commit
1ae00a306b
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue