@particle-academy/react-fancy 4.4.3 → 4.4.4

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
@@ -3212,7 +3212,11 @@ var Textarea = forwardRef(
3212
3212
  );
3213
3213
  Textarea.displayName = "Textarea";
3214
3214
  function Portal({ children, container }) {
3215
- if (typeof document === "undefined") return null;
3215
+ const [mounted, setMounted] = useState(false);
3216
+ useEffect(() => {
3217
+ setMounted(true);
3218
+ }, []);
3219
+ if (!mounted || typeof document === "undefined") return null;
3216
3220
  const target = container ?? document.body;
3217
3221
  return createPortal(
3218
3222
  /* @__PURE__ */ jsx(PortalDarkWrapper, { children }),