react-portal
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -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
22549
1709507