@lumx/react 3.11.1-alpha.2 → 3.11.1-alpha.3

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/index.js CHANGED
@@ -4611,9 +4611,6 @@ function usePopoverStyle(_ref5) {
4611
4611
  if (fitWithinViewportHeight && !newStyles.maxHeight) {
4612
4612
  newStyles.maxHeight = (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.innerHeight) || (DOCUMENT === null || DOCUMENT === void 0 ? void 0 : DOCUMENT.documentElement.clientHeight);
4613
4613
  }
4614
-
4615
- // Do not show the popover while it's not properly placed
4616
- if (!newStyles.transform) newStyles.opacity = 0;
4617
4614
  return newStyles;
4618
4615
  }, [style, styles.popper, zIndex, fitWithinViewportHeight]);
4619
4616
  return {
@@ -4664,6 +4661,7 @@ const renderPopover = (children, usePortal) => {
4664
4661
 
4665
4662
  // Inner component (must be wrapped before export)
4666
4663
  const _InnerPopover = forwardRef((props, ref) => {
4664
+ var _styles$popover;
4667
4665
  const {
4668
4666
  anchorRef,
4669
4667
  as: Component = 'div',
@@ -4731,7 +4729,9 @@ const _InnerPopover = forwardRef((props, ref) => {
4731
4729
  theme,
4732
4730
  elevation: Math.min(elevation || 0, 5),
4733
4731
  position
4734
- })),
4732
+ }),
4733
+ // Do not show the popover while it's not properly placed
4734
+ !((_styles$popover = styles.popover) !== null && _styles$popover !== void 0 && _styles$popover.transform) ? VISUALLY_HIDDEN : undefined),
4735
4735
  style: styles.popover
4736
4736
  }, attributes.popper), unmountSentinel, /*#__PURE__*/React__default.createElement(ClickAwayProvider, {
4737
4737
  callback: closeOnClickAway && onClose,