x-ui-design 0.8.20 → 0.8.22
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 +3 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/lib/hooks/usePosition.ts +4 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2645,6 +2645,9 @@ const usePosition = ({
|
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
2647
|
} else {
|
|
2648
|
+
console.info({
|
|
2649
|
+
_shouldShowAbove
|
|
2650
|
+
});
|
|
2648
2651
|
setDropdownPosition({
|
|
2649
2652
|
top: (_shouldShowAbove ? triggerRef.current.offsetTop - (popupRef.current?.offsetHeight || dropdownHeight) - offset * 2 : triggerRef.current.offsetTop + triggerRef.current?.offsetHeight) + offset,
|
|
2650
2653
|
...(hasRight ? {
|
|
@@ -2694,10 +2697,6 @@ const usePosition = ({
|
|
|
2694
2697
|
controller.abort();
|
|
2695
2698
|
};
|
|
2696
2699
|
}, [isOpen, triggerRef, getPopupContainer, dropdownPosition]);
|
|
2697
|
-
console.info({
|
|
2698
|
-
showPlacement,
|
|
2699
|
-
_dropdownPosition
|
|
2700
|
-
});
|
|
2701
2700
|
return useMemo(() => ({
|
|
2702
2701
|
showPlacement,
|
|
2703
2702
|
dropdownPosition: {
|