Skip to content

Commit

Permalink
fix(lxl-web): double unmounting of popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbissemattsson committed Nov 5, 2024
1 parent 96455fd commit 77f00f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxl-web/src/lib/actions/popover/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const popover: Action<HTMLElement, Parameter> = (
cancelAttach?.();
cancelFetch?.();
cancelRemove?.();
if (floatingElement) {
if (attached && floatingElement) {
unmount(floatingElement);
}
attached = false;
Expand Down

0 comments on commit 77f00f2

Please sign in to comment.