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.

settings_overlay: Remove the settings-section show class on close.

Karl Stolley77cd886e2481
diff --git a/web/src/overlays.ts b/web/src/overlays.ts
index 16110366095..75b368d6279 100644
--- a/web/src/overlays.ts
+++ b/web/src/overlays.ts
@@ -150,6 +150,10 @@ export function close_overlay(name: string): void {
$(".app").attr("aria-hidden", "false");
$("#navbar-fixed-container").attr("aria-hidden", "false");
+ // Prevent a bug where a blank settings section appears
+ // when the settings panel is reopened.
+ $(".settings-section").removeClass("show");
+
active_overlay.close_handler();
overlay_util.enable_scrolling();
}