@wistia/ui 0.15.13-beta.a8953353.4dacd3e → 0.15.13

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.13-beta.a8953353.4dacd3e
3
+ * @license @wistia/ui v0.15.13
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -12877,7 +12877,6 @@ var Combobox2 = ({
12877
12877
  // src/components/ContextMenu/ContextMenu.tsx
12878
12878
  import { isNil as isNil16, isNotNil as isNotNil24 } from "@wistia/type-guards";
12879
12879
  import { useEffect as useEffect16, useState as useState17 } from "react";
12880
- import { createPortal } from "react-dom";
12881
12880
 
12882
12881
  // src/components/Menu/Menu.tsx
12883
12882
  import {
@@ -13579,10 +13578,7 @@ var ContextMenu = ({
13579
13578
  return () => null;
13580
13579
  }, [position, triggerRef]);
13581
13580
  const isOpen = isNotNil24(position) || isRightClicked;
13582
- if (!isOpen) {
13583
- return null;
13584
- }
13585
- const menu = /* @__PURE__ */ jsx267(
13581
+ return isOpen ? /* @__PURE__ */ jsx267(
13586
13582
  Menu,
13587
13583
  {
13588
13584
  isOpen,
@@ -13610,11 +13606,7 @@ var ContextMenu = ({
13610
13606
  ),
13611
13607
  children
13612
13608
  }
13613
- );
13614
- if (isNotNil24(triggerRef)) {
13615
- return createPortal(menu, document.body);
13616
- }
13617
- return menu;
13609
+ ) : null;
13618
13610
  };
13619
13611
 
13620
13612
  // src/components/DataCards/DataCard.tsx