x-ui-design 0.8.21 → 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 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/hooks/usePosition.ts +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2619,7 +2619,6 @@ const usePosition = ({
|
|
|
2619
2619
|
if (!triggerRef.current) {
|
|
2620
2620
|
return {};
|
|
2621
2621
|
}
|
|
2622
|
-
debugger;
|
|
2623
2622
|
const inputRect = triggerRef.current?.getBoundingClientRect();
|
|
2624
2623
|
const dropdownHeight = popupRef.current?.offsetHeight || popupRef.current?.offsetHeight || 0;
|
|
2625
2624
|
const containerRect = (getPopupContainer || getScrollParent(triggerRef.current, true) || document.body).getBoundingClientRect();
|
|
@@ -2648,6 +2647,9 @@ const usePosition = ({
|
|
|
2648
2647
|
});
|
|
2649
2648
|
}
|
|
2650
2649
|
} else {
|
|
2650
|
+
console.info({
|
|
2651
|
+
_shouldShowAbove
|
|
2652
|
+
});
|
|
2651
2653
|
setDropdownPosition({
|
|
2652
2654
|
top: (_shouldShowAbove ? triggerRef.current.offsetTop - (popupRef.current?.offsetHeight || dropdownHeight) - offset * 2 : triggerRef.current.offsetTop + triggerRef.current?.offsetHeight) + offset,
|
|
2653
2655
|
...(hasRight ? {
|