x-ui-design 0.9.24 → 0.9.25

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
@@ -2733,7 +2733,7 @@ const usePopupPosition = ({
2733
2733
  }
2734
2734
  };
2735
2735
  _calculation();
2736
- }, [targetRef, popupContainer, popupRef, inBody, _placement, setOpen]);
2736
+ }, [targetRef, popupContainer, popupRef.current, inBody, _placement, setOpen]);
2737
2737
  useEffect(() => {
2738
2738
  if (!open) {
2739
2739
  return;
@@ -2754,7 +2754,7 @@ const usePopupPosition = ({
2754
2754
  controller.abort();
2755
2755
  setPopupPosition({});
2756
2756
  };
2757
- }, [open, targetRef, calculatePosition]);
2757
+ }, [open, targetRef, popupRef, calculatePosition]);
2758
2758
  return {
2759
2759
  _placement,
2760
2760
  popupStyle: {