playground_links: Fix disappearing reference when popover is active.

This commit is contained in:
Daniil Fadeev 2023-09-15 17:27:41 +04:00 committed by Tim Abbott
parent 79c6ff91d7
commit 79e050b81b
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;