react-portal
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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
1709539
22548