x-ui-design 0.9.46 → 0.9.47

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
@@ -2657,7 +2657,6 @@ const usePopupPosition = ({
2657
2657
  if (e?.target === scrollableParents && inBody) {
2658
2658
  setOpen(false);
2659
2659
  setPopupPosition({});
2660
- _setPlacement(placement ?? "bottomLeft");
2661
2660
  return;
2662
2661
  }
2663
2662
  const popupRect = popupRef.current?.getBoundingClientRect();
@@ -2768,7 +2767,7 @@ const usePopupPosition = ({
2768
2767
  }
2769
2768
  };
2770
2769
  _calculation();
2771
- }, [targetRef, popupContainer, popupRef, placement, inBody, _placement, setOpen]);
2770
+ }, [targetRef, popupContainer, popupRef, inBody, _placement, setOpen]);
2772
2771
  useEffect(() => {
2773
2772
  if (!open) {
2774
2773
  return;
@@ -2788,9 +2787,8 @@ const usePopupPosition = ({
2788
2787
  return () => {
2789
2788
  controller.abort();
2790
2789
  setPopupPosition({});
2791
- _setPlacement(placement ?? "bottomLeft");
2792
2790
  };
2793
- }, [open, targetRef, placement, calculatePosition]);
2791
+ }, [open, targetRef, calculatePosition]);
2794
2792
  return {
2795
2793
  _placement,
2796
2794
  popupStyle: {