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

react-combo-modal

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-combo-modal - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

20

lib/Modal.jsx

@@ -55,15 +55,13 @@ 'use strict';

value: function componentDidUpdate(prevProps) {
this.renderLayer();
if (prevProps.open !== this.props.open) {
this.renderLayer();
if (this.props.open) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'auto';
if (!prevProps.open && this.props.open) {
document.body.style.overflow = 'hidden';
this.addEventListeners();
} else {
document.body.style.overflow = 'auto';
this.removeEventListeners();
}
}
if (!prevProps.open && this.props.open) {
this.addEventListeners();
} else if (prevProps.open && !this.props.open) {
this.removeEventListeners();
}
}

@@ -70,0 +68,0 @@ }, {

{
"name": "react-combo-modal",
"version": "1.0.1",
"keywords": "react, modal, react-component",
"version": "1.0.2",
"keywords": ["react", "modal", "react-component"],
"description": "React modal component",
"main": "./lib/Modal.jsx",
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --config webpack.config.js --hot --progress --colors --port 8081 --open",
"test": "mocha --compilers js:babel-core/register --require ./test/test.js \"test/**/*@(.js|.jsx)\"",
"prepublish": "rm -rf ./lib && mkdir lib && ./node_modules/.bin/babel Components/Modal.jsx --out-file lib/Modal.jsx && ./node_modules/.bin/babel lib/Modal.jsx",
"start":
"./node_modules/.bin/webpack-dev-server --config webpack.config.js --hot --progress --colors --port 8081 --open",
"test":
"mocha --compilers js:babel-core/register --require ./test/test.js \"test/**/*@(.js|.jsx)\"",
"prepublish":
"rm -rf ./lib && mkdir lib && ./node_modules/.bin/babel Components/Modal.jsx --out-file lib/Modal.jsx && ./node_modules/.bin/babel lib/Modal.jsx",
"postpublish": "rm -rf ./lib"

@@ -12,0 +15,0 @@ },

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