Socket
Socket
Sign inDemoInstall

react-portal

Package Overview
Dependencies
2
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

3

examples/index.js

@@ -26,4 +26,3 @@ var React = require('react');

<p>This is <strong>great for a modal, lightbox, loading bar ... etc.</strong>.</p>
<p><strong>Click outside</strong> to close this.</p>
<p>Or close this by pressing <strong>ESC</strong>.</p>
<p>Close this by pressing <strong>ESC</strong>.</p>
<p><strong>Why psuedo?</strong> Becuase the proper CSS styles are up to you. ;-)</p>

@@ -30,0 +29,0 @@ </PseudoModal>

@@ -33,6 +33,2 @@ import React, {findDOMNode} from 'react';

}
if (this.props.closeOnOutsideClick) {
document.removeEventListener('mousedown', this.handleOutsideMouseClick);
}
}

@@ -59,2 +55,7 @@

}
if (this.props.closeOnOutsideClick) {
document.removeEventListener('mousedown', this.handleOutsideMouseClick);
}
this.closePortal();

@@ -61,0 +62,0 @@ }

@@ -6,3 +6,3 @@ {

"author": "Vojtech Miksu",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",

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

@@ -61,6 +61,2 @@ "use strict";

}
if (this.props.closeOnOutsideClick) {
document.removeEventListener("mousedown", this.handleOutsideMouseClick);
}
}

@@ -92,2 +88,7 @@ },

}
if (this.props.closeOnOutsideClick) {
document.removeEventListener("mousedown", this.handleOutsideMouseClick);
}
this.closePortal();

@@ -94,0 +95,0 @@ }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc