From 77f00f2b025b42bf59c162dd66d8b1d26ac2fbce Mon Sep 17 00:00:00 2001 From: Johan Bisse Mattsson Date: Tue, 5 Nov 2024 08:43:32 +0100 Subject: [PATCH] fix(lxl-web): double unmounting of popovers --- lxl-web/src/lib/actions/popover/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxl-web/src/lib/actions/popover/index.ts b/lxl-web/src/lib/actions/popover/index.ts index bfb6f81cf..28ef02611 100644 --- a/lxl-web/src/lib/actions/popover/index.ts +++ b/lxl-web/src/lib/actions/popover/index.ts @@ -103,7 +103,7 @@ export const popover: Action = ( cancelAttach?.(); cancelFetch?.(); cancelRemove?.(); - if (floatingElement) { + if (attached && floatingElement) { unmount(floatingElement); } attached = false;