diff --git a/ts/components/Popover.svelte b/ts/components/Popover.svelte index 4cd182852..fb32ff072 100644 --- a/ts/components/Popover.svelte +++ b/ts/components/Popover.svelte @@ -22,7 +22,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html const placementStore = getContext>>(floatingKey); /* await computed placement of floating element to determine animation direction */ - $: if ($placementStore !== undefined) { + $: if ($placementStore !== undefined && hidden) { $placementStore.then((computedPlacement) => { if (placement != computedPlacement) { placement = computedPlacement;