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.

modals: Remove `in` class once modal is hidden.

Ganesh Pawar2965fec35551
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 83452c7176c..b545a37181c 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -912,6 +912,10 @@ export function initialize() {
$("body").on("hidden.bs.modal", () => {
// Enable mouse events for the background as the modal closes.
overlays.enable_background_mouse_events();
+
+ // TODO: Remove this once Bootstrap is upgraded.
+ // See: https://github.com/zulip/zulip/pull/18720
+ $(".modal.in").removeClass("in");
});
// MAIN CLICK HANDLER