x-ui-design 0.9.37 → 0.9.38

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
@@ -2640,7 +2640,7 @@ const usePopupPosition = ({
2640
2640
  scrollableParents,
2641
2641
  relativePosition
2642
2642
  } = getElementParentDetails(targetRef.current, true);
2643
- const _containsElement = scrollableParents?.contains(popupContainer) && popupContainer !== scrollableParents;
2643
+ const _containsElement = scrollableParents?.contains(popupContainer) && popupContainer !== scrollableParents && !inBody;
2644
2644
  const positions = !popupContainer ? {
2645
2645
  top: (targetRef.current?.offsetTop || 0) + OFFSET,
2646
2646
  left: targetRef.current?.offsetLeft || 0