x-ui-design 0.9.87 → 0.9.88

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.esm.js CHANGED
@@ -2808,15 +2808,14 @@ const usePopupPosition = ({
2808
2808
  setPopupPosition({});
2809
2809
  };
2810
2810
  }, [open, targetRef, listenPopoverPossitions, calculatePosition]);
2811
- const showPopupStyle = open && (popupPosition.hasOwnProperty('top') || popupPosition.hasOwnProperty('left'));
2812
2811
  return {
2813
2812
  _placement,
2814
- popupStyle: showPopupStyle ? {
2813
+ popupStyle: {
2815
2814
  zIndex: 10000,
2816
2815
  position: "absolute",
2817
2816
  opacity: Object.keys(popupPosition).length ? 1 : 0,
2818
2817
  ...popupPosition
2819
- } : {}
2818
+ }
2820
2819
  };
2821
2820
  };
2822
2821