x-ui-design 0.9.24 → 0.9.26

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
@@ -2691,6 +2691,12 @@ const usePopupPosition = ({
2691
2691
  }
2692
2692
  const _calculation = () => {
2693
2693
  if (!popupRect?.width) {
2694
+ setOpen(false);
2695
+ setPopupPosition({});
2696
+ const timeout = setTimeout(() => {
2697
+ setOpen(false);
2698
+ clearTimeout(timeout);
2699
+ }, 0);
2694
2700
  return;
2695
2701
  }
2696
2702
  switch (_placement) {