rc-dialog
Advanced tools
Comparing version 8.5.0 to 8.5.1
@@ -138,4 +138,2 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
setAnimatedVisible(true); | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
return scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock; | ||
} | ||
@@ -150,4 +148,12 @@ | ||
}; | ||
}, []); // ========================= Render ========================= | ||
}, []); | ||
useEffect(function () { | ||
if (animatedVisible) { | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
return scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock; | ||
} | ||
return function () {}; | ||
}, [animatedVisible]); // ========================= Render ========================= | ||
return /*#__PURE__*/React.createElement("div", { | ||
@@ -154,0 +160,0 @@ className: "".concat(prefixCls, "-root") |
@@ -158,4 +158,2 @@ "use strict"; | ||
setAnimatedVisible(true); | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
return scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock; | ||
} | ||
@@ -170,4 +168,12 @@ | ||
}; | ||
}, []); // ========================= Render ========================= | ||
}, []); | ||
(0, React.useEffect)(function () { | ||
if (animatedVisible) { | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
return scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock; | ||
} | ||
return function () {}; | ||
}, [animatedVisible]); // ========================= Render ========================= | ||
return /*#__PURE__*/React.createElement("div", { | ||
@@ -174,0 +180,0 @@ className: "".concat(prefixCls, "-root") |
{ | ||
"name": "rc-dialog", | ||
"version": "8.5.0", | ||
"version": "8.5.1", | ||
"description": "dialog ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60173
1449