Socket
Socket
Sign inDemoInstall

react-modal-dialog

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-modal-dialog - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

13

lib/ModalDialog.js

@@ -138,4 +138,7 @@ 'use strict';

}
if (target === _this.refs.self || _this.refs.self.contains(target)) return false;
if (!_this.props.dismissOnBackgroundClick) {
if (target !== _this.refs.self || _this.refs.self.contains(target)) return false;
} else {
if (target === _this.refs.self || _this.refs.self.contains(target)) return false;
}
return true;

@@ -244,3 +247,4 @@ };

recenter: _react.PropTypes.func.isRequired,
top: _react.PropTypes.number
top: _react.PropTypes.number,
dismissOnBackgroundClick: _react.PropTypes.bool
},

@@ -252,3 +256,4 @@ enumerable: true

width: 'auto',
margin: 20
margin: 20,
dismissOnBackgroundClick: true
},

@@ -255,0 +260,0 @@ enumerable: true

{
"name": "react-modal-dialog",
"version": "4.0.4",
"version": "4.0.5",
"description": "A simple, idiomatic, and declarative way to launch modal dialogs in ReactJS",

@@ -5,0 +5,0 @@ "repository": {

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