From 8f311f5e8c6a5b8b27b0ba8d652d30fd45d76b8a Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Thu, 8 Dec 2022 13:35:55 +0100 Subject: [PATCH] Fix popover animation causing placement switching loop (#2246) --- ts/components/Popover.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;