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

react-combo-modal

Package Overview
Dependencies
Maintainers
4
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.3 to 1.0.4

19

lib/Modal.jsx

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

value: function componentDidUpdate(prevProps) {
// this needs to always run
this.renderLayer();
if (this.props.open) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'auto';
if (prevProps.open !== this.props.open) {
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 +69,0 @@ }, {

{
"name": "react-combo-modal",
"version": "1.0.3",
"keywords": "react, modal, react-component",
"version": "1.0.4",
"keywords": ["react", "modal", "react-component"],
"description": "React modal component",

@@ -6,0 +6,0 @@ "main": "./lib/Modal.jsx",

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