FIX: closes popover when downloading calendar (#16598)

This commit is contained in:
Joffrey JAFFEUX 2022-05-02 20:35:15 +02:00 committed by GitHub
parent 9fc3d46003
commit f86b53778d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

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