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.3 to 0.2.0

4

lib/portal.js

@@ -28,4 +28,2 @@ import React, {findDOMNode} from 'react';

componentWillMount() {
if (this.props.isOpened == 'undefined') return;
if (this.props.isOpened) {

@@ -85,2 +83,4 @@ this.openPortal();

openPortal(e) {
e.preventDefault();
e.stopPropagation();
this.setState({ active: true });

@@ -87,0 +87,0 @@ this.renderPortal(this.props);

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

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

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

@@ -56,5 +56,3 @@ "use strict";

value: function componentWillMount() {
if (this.props.isOpened == "undefined") {
return;
}if (this.props.isOpened) {
if (this.props.isOpened) {
this.openPortal();

@@ -125,2 +123,4 @@ }

value: function openPortal(e) {
e.preventDefault();
e.stopPropagation();
this.setState({ active: true });

@@ -127,0 +127,0 @@ this.renderPortal(this.props);

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