rc-drawer
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -375,3 +375,4 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
open = _this$props7.open, | ||
getContainer = _this$props7.getContainer; | ||
getContainer = _this$props7.getContainer, | ||
showMask = _this$props7.showMask; | ||
var container = getContainer && getContainer(); | ||
@@ -382,4 +383,2 @@ this.drawerId = "drawer_id_".concat(Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9).toString())).toString(16)); | ||
if (open) { | ||
var _this$props$scrollLoc; | ||
if (container && container.parentNode === document.body) { | ||
@@ -394,3 +393,8 @@ currentDrawer[this.drawerId] = open; | ||
}); | ||
(_this$props$scrollLoc = this.props.scrollLocker) === null || _this$props$scrollLoc === void 0 ? void 0 : _this$props$scrollLoc.lock(); | ||
if (showMask) { | ||
var _this$props$scrollLoc; | ||
(_this$props$scrollLoc = this.props.scrollLocker) === null || _this$props$scrollLoc === void 0 ? void 0 : _this$props$scrollLoc.lock(); | ||
} | ||
} | ||
@@ -404,3 +408,4 @@ } | ||
getContainer = _this$props8.getContainer, | ||
scrollLocker = _this$props8.scrollLocker; | ||
scrollLocker = _this$props8.scrollLocker, | ||
showMask = _this$props8.showMask; | ||
var container = getContainer && getContainer(); | ||
@@ -417,3 +422,6 @@ | ||
this.domFocus(); | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
if (showMask) { | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
} | ||
} else { | ||
@@ -420,0 +428,0 @@ scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock(); |
@@ -400,3 +400,4 @@ "use strict"; | ||
open = _this$props7.open, | ||
getContainer = _this$props7.getContainer; | ||
getContainer = _this$props7.getContainer, | ||
showMask = _this$props7.showMask; | ||
var container = getContainer && getContainer(); | ||
@@ -407,4 +408,2 @@ this.drawerId = "drawer_id_".concat(Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9).toString())).toString(16)); | ||
if (open) { | ||
var _this$props$scrollLoc; | ||
if (container && container.parentNode === document.body) { | ||
@@ -419,3 +418,8 @@ currentDrawer[this.drawerId] = open; | ||
}); | ||
(_this$props$scrollLoc = this.props.scrollLocker) === null || _this$props$scrollLoc === void 0 ? void 0 : _this$props$scrollLoc.lock(); | ||
if (showMask) { | ||
var _this$props$scrollLoc; | ||
(_this$props$scrollLoc = this.props.scrollLocker) === null || _this$props$scrollLoc === void 0 ? void 0 : _this$props$scrollLoc.lock(); | ||
} | ||
} | ||
@@ -429,3 +433,4 @@ } | ||
getContainer = _this$props8.getContainer, | ||
scrollLocker = _this$props8.scrollLocker; | ||
scrollLocker = _this$props8.scrollLocker, | ||
showMask = _this$props8.showMask; | ||
var container = getContainer && getContainer(); | ||
@@ -442,3 +447,6 @@ | ||
this.domFocus(); | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
if (showMask) { | ||
scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock(); | ||
} | ||
} else { | ||
@@ -445,0 +453,0 @@ scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock(); |
{ | ||
"name": "rc-drawer", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "drawer component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ # rc-drawer | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][circleci-image]][circleci-url] | ||
[![build status][github-actions-image]][github-actions-url] | ||
[![codecov](https://codecov.io/gh/react-component/drawer/branch/master/graph/badge.svg)](https://codecov.io/gh/react-component/drawer) | ||
@@ -13,4 +13,4 @@ [![node version][node-image]][node-url] | ||
[npm-url]: http://npmjs.org/package/rc-drawer | ||
[circleci-image]: https://img.shields.io/circleci/build/github/react-component/drawer/master.svg?style=flat-square | ||
[circleci-url]: https://circleci.com/gh/react-component/drawer/tree/master | ||
[github-actions-image]: https://github.com/react-component/drawer/workflows/CI/badge.svg | ||
[github-actions-url]: https://github.com/react-component/drawer/actions | ||
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square | ||
@@ -17,0 +17,0 @@ [node-url]: http://nodejs.org/download/ |
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
80567
1890