mirror of https://github.com/zulip/zulip.git
playground_links: Fix disappearing reference when popover is active.
This commit is contained in:
parent
79c6ff91d7
commit
79e050b81b
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue