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