@wistia/ui 0.15.12-beta.e10a1dcd.8034c36 → 0.15.13-beta.a8953353.4dacd3e

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.12-beta.e10a1dcd.8034c36
3
+ * @license @wistia/ui v0.15.13-beta.a8953353.4dacd3e
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -13039,6 +13039,7 @@ var Combobox2 = ({
13039
13039
  // src/components/ContextMenu/ContextMenu.tsx
13040
13040
  var import_type_guards43 = require("@wistia/type-guards");
13041
13041
  var import_react61 = require("react");
13042
+ var import_react_dom = require("react-dom");
13042
13043
 
13043
13044
  // src/components/Menu/Menu.tsx
13044
13045
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
@@ -13728,7 +13729,10 @@ var ContextMenu = ({
13728
13729
  return () => null;
13729
13730
  }, [position, triggerRef]);
13730
13731
  const isOpen = (0, import_type_guards43.isNotNil)(position) || isRightClicked;
13731
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13732
+ if (!isOpen) {
13733
+ return null;
13734
+ }
13735
+ const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13732
13736
  Menu,
13733
13737
  {
13734
13738
  isOpen,
@@ -13756,7 +13760,11 @@ var ContextMenu = ({
13756
13760
  ),
13757
13761
  children
13758
13762
  }
13759
- ) : null;
13763
+ );
13764
+ if ((0, import_type_guards43.isNotNil)(triggerRef)) {
13765
+ return (0, import_react_dom.createPortal)(menu, document.body);
13766
+ }
13767
+ return menu;
13760
13768
  };
13761
13769
 
13762
13770
  // src/components/DataCards/DataCard.tsx