@shoplflow/base 0.24.31 → 0.24.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.js CHANGED
@@ -1701,7 +1701,10 @@ var PopperPortal = forwardRef(
1701
1701
  const { floatingStyles, setFloating, isOpen } = usePopper();
1702
1702
  const animation = initialAnimation != null ? initialAnimation : fadeInOut;
1703
1703
  const refs = useMergeRefs(ref, setFloating);
1704
- return /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(AnimatePresence, { children: isOpen && /* @__PURE__ */ jsx(
1704
+ if (!isOpen) {
1705
+ return null;
1706
+ }
1707
+ return /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsx(
1705
1708
  motion.div,
1706
1709
  {
1707
1710
  initial: animation.initial,