From 79e050b81bf9338f78b963203f5040eddfe8dfd4 Mon Sep 17 00:00:00 2001 From: Daniil Fadeev Date: Fri, 15 Sep 2023 17:27:41 +0400 Subject: [PATCH] playground_links: Fix disappearing reference when popover is active. --- web/src/playground_links_popover.js | 2 ++ web/styles/reactions.css | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/playground_links_popover.js b/web/src/playground_links_popover.js index df96e3dc6d..0348bfc4cb 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 3a476a8cb4..832b9fa1f9 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;