x-ui-design 0.9.30 → 0.9.32

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
@@ -2673,7 +2673,7 @@ const usePopupPosition = ({
2673
2673
  top: container.top - (popupRect.height + OFFSET),
2674
2674
  bottom: (inBody ? window.innerHeight : scrollableParents?.clientHeight || 0) - (container.bottom + popupRect.height + OFFSET),
2675
2675
  left: container.left - (popupRect.width + OFFSET),
2676
- right: (inBody ? window.innerWidth : scrollableParents?.clientWidth || 0) - (container.left + popupRect.width + OFFSET)
2676
+ right: (inBody ? window.innerWidth : scrollableParents?.clientWidth || 0) - ((targetRef.current?.clientLeft || 0 || container.right) + popupRect.width + OFFSET)
2677
2677
  };
2678
2678
  let newPlacement = _placement;
2679
2679
  if (availableSpace.bottom < 0 && availableSpace.top > 0) {