@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.cjs CHANGED
@@ -1726,7 +1726,10 @@ exports.PopperPortal = React2.forwardRef(
1726
1726
  const { floatingStyles, setFloating, isOpen } = usePopper();
1727
1727
  const animation = initialAnimation != null ? initialAnimation : fadeInOut;
1728
1728
  const refs = useMergeRefs(ref, setFloating);
1729
- return /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: isOpen && /* @__PURE__ */ jsxRuntime.jsx(
1729
+ if (!isOpen) {
1730
+ return null;
1731
+ }
1732
+ return /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: /* @__PURE__ */ jsxRuntime.jsx(
1730
1733
  framerMotion.motion.div,
1731
1734
  {
1732
1735
  initial: animation.initial,