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.

playground_links: Fix disappearing reference when popover is active.

Daniil Fadeev79e050b81bf9
diff --git a/web/src/playground_links_popover.js b/web/src/playground_links_popover.js
index df96e3dc6d9..0348bfc4cb1 100644
--- a/web/src/playground_links_popover.js
+++ b/web/src/playground_links_popover.js
@@ -35,6 +35,7 @@ function toggle_playground_links_popover(element, playground_info) {
fixed: true,
});
$elt.popover("show");
+ $elt.addClass("active-playground-links-reference");
$current_playground_links_popover_elem = $elt;
}
}
@@ -45,6 +46,7 @@ export function is_open() {
export function hide() {
if (is_open()) {
+ $current_playground_links_popover_elem.removeClass("active-playground-links-reference");
$current_playground_links_popover_elem.popover("destroy");
$current_playground_links_popover_elem = undefined;
}
diff --git a/web/styles/reactions.css b/web/styles/reactions.css
index 3a476a8cb49..832b9fa1f90 100644
--- a/web/styles/reactions.css
+++ b/web/styles/reactions.css
@@ -134,7 +134,8 @@
}
}
-.active-emoji-picker-reference {
+.active-emoji-picker-reference,
+.active-playground-links-reference {
visibility: visible !important;
pointer-events: all !important;
opacity: 1 !important;