diff --git a/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js b/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js index d73c671140f..ea2a3b792ab 100644 --- a/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js +++ b/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js @@ -246,6 +246,13 @@ export default { endsAt: dataset.endsAt, }, ]); + + // TODO: remove this when rewriting preview as a component + const parentPopover = event.target.closest("[data-tippy-root]"); + if (parentPopover?._tippy) { + parentPopover._tippy.hide(); + } + return; }