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 CHANGED
@@ -2617,7 +2617,6 @@ const usePosition = ({
2617
2617
  if (!triggerRef.current) {
2618
2618
  return {};
2619
2619
  }
2620
- debugger;
2621
2620
  const inputRect = triggerRef.current?.getBoundingClientRect();
2622
2621
  const dropdownHeight = popupRef.current?.offsetHeight || popupRef.current?.offsetHeight || 0;
2623
2622
  const containerRect = (getPopupContainer || getScrollParent(triggerRef.current, true) || document.body).getBoundingClientRect();
@@ -2646,6 +2645,9 @@ const usePosition = ({
2646
2645
  });
2647
2646
  }
2648
2647
  } else {
2648
+ console.info({
2649
+ _shouldShowAbove
2650
+ });
2649
2651
  setDropdownPosition({
2650
2652
  top: (_shouldShowAbove ? triggerRef.current.offsetTop - (popupRef.current?.offsetHeight || dropdownHeight) - offset * 2 : triggerRef.current.offsetTop + triggerRef.current?.offsetHeight) + offset,
2651
2653
  ...(hasRight ? {