mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:27:28 +08:00
FIX: closes popover when downloading calendar (#16598)
This commit is contained in:
parent
9fc3d46003
commit
f86b53778d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user