@wistia/ui 0.15.12-beta.3ecc0076.d529776 → 0.15.12-beta.92147bae.2ac7d78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.12-beta.3ecc0076.d529776
3
+ * @license @wistia/ui v0.15.12-beta.92147bae.2ac7d78
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -12835,7 +12835,6 @@ var Combobox2 = ({
12835
12835
  // src/components/ContextMenu/ContextMenu.tsx
12836
12836
  import { isNil as isNil15, isNotNil as isNotNil24 } from "@wistia/type-guards";
12837
12837
  import { useEffect as useEffect16, useState as useState17 } from "react";
12838
- import { createPortal } from "react-dom";
12839
12838
 
12840
12839
  // src/components/Menu/Menu.tsx
12841
12840
  import {
@@ -13537,10 +13536,7 @@ var ContextMenu = ({
13537
13536
  return () => null;
13538
13537
  }, [position, triggerRef]);
13539
13538
  const isOpen = isNotNil24(position) || isRightClicked;
13540
- if (!isOpen) {
13541
- return null;
13542
- }
13543
- const menu = /* @__PURE__ */ jsx267(
13539
+ return isOpen ? /* @__PURE__ */ jsx267(
13544
13540
  Menu,
13545
13541
  {
13546
13542
  isOpen,
@@ -13568,11 +13564,7 @@ var ContextMenu = ({
13568
13564
  ),
13569
13565
  children
13570
13566
  }
13571
- );
13572
- if (isNotNil24(triggerRef)) {
13573
- return createPortal(menu, document.body);
13574
- }
13575
- return menu;
13567
+ ) : null;
13576
13568
  };
13577
13569
 
13578
13570
  // src/components/DataCards/DataCard.tsx