react-portal
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -82,4 +82,6 @@ import React, {findDOMNode} from 'react'; | ||
openPortal(e) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
if (e) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
} | ||
this.setState({ active: true }); | ||
@@ -86,0 +88,0 @@ this.renderPortal(this.props); |
@@ -6,3 +6,3 @@ { | ||
"author": "Vojtech Miksu", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -122,4 +122,6 @@ "use strict"; | ||
value: function openPortal(e) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
if (e) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
} | ||
this.setState({ active: true }); | ||
@@ -126,0 +128,0 @@ this.renderPortal(this.props); |
Sorry, the diff of this file is too big to display
1709802
22556