x-ui-design 0.9.59 → 0.9.60

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
@@ -2662,7 +2662,7 @@ const usePopupPosition = ({
2662
2662
  }
2663
2663
  const popupRect = popupRef.current?.getBoundingClientRect();
2664
2664
  if (popupRect) {
2665
- if (!popupRect?.width) {
2665
+ if (popupRect?.width < OFFSET) {
2666
2666
  setOpen(false);
2667
2667
  setPopupPosition({});
2668
2668
  const timeout = setTimeout(() => {