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
|
@@ -249,15 +249,13 @@ export const usePopupPosition = ({
|
|
|
249
249
|
};
|
|
250
250
|
}, [open, targetRef, listenPopoverPossitions, calculatePosition]);
|
|
251
251
|
|
|
252
|
-
const showPopupStyle = open && (popupPosition.hasOwnProperty('top') || popupPosition.hasOwnProperty('left'))
|
|
253
|
-
|
|
254
252
|
return {
|
|
255
253
|
_placement,
|
|
256
|
-
popupStyle:
|
|
254
|
+
popupStyle: {
|
|
257
255
|
zIndex: 10000,
|
|
258
256
|
position: "absolute",
|
|
259
257
|
opacity: Object.keys(popupPosition).length ? 1 : 0,
|
|
260
258
|
...popupPosition
|
|
261
|
-
}
|
|
259
|
+
}
|
|
262
260
|
};
|
|
263
261
|
};
|