Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-drawer

Package Overview
Dependencies
Maintainers
4
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-drawer - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

20

es/DrawerChild.js

@@ -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/

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc