evelearn-theme 2.0.14 → 2.0.16

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
@@ -2083,7 +2083,6 @@ var OverlaySpinner = function(param) {
2083
2083
  (0, import_react11.useEffect)(function() {
2084
2084
  return setMounted(true);
2085
2085
  }, []);
2086
- if (!mounted) return null;
2087
2086
  (0, import_react11.useEffect)(function() {
2088
2087
  if (modalRoot || !visible) return;
2089
2088
  var root = document.getElementById("spinner-root");
@@ -2102,7 +2101,7 @@ var OverlaySpinner = function(param) {
2102
2101
  }, [
2103
2102
  visible
2104
2103
  ]);
2105
- if (!visible) return null;
2104
+ if (!visible || !mounted) return null;
2106
2105
  return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
2107
2106
  className: "animate-fade-in",
2108
2107
  children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
package/dist/index.mjs CHANGED
@@ -1895,7 +1895,6 @@ var OverlaySpinner = function(param) {
1895
1895
  useEffect6(function() {
1896
1896
  return setMounted(true);
1897
1897
  }, []);
1898
- if (!mounted) return null;
1899
1898
  useEffect6(function() {
1900
1899
  if (modalRoot || !visible) return;
1901
1900
  var root = document.getElementById("spinner-root");
@@ -1914,7 +1913,7 @@ var OverlaySpinner = function(param) {
1914
1913
  }, [
1915
1914
  visible
1916
1915
  ]);
1917
- if (!visible) return null;
1916
+ if (!visible || !mounted) return null;
1918
1917
  return createPortal(/* @__PURE__ */ jsx36("div", {
1919
1918
  className: "animate-fade-in",
1920
1919
  children: /* @__PURE__ */ jsx36("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evelearn-theme",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",