Skip to content

Commit

Permalink
Release 3.0.0-rc2.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Oct 4, 2017
1 parent 1260850 commit cc4577c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "3.0.0-rc1",
"version": "3.0.0-rc2",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
6 changes: 5 additions & 1 deletion dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@ var Modal = function (_Component) {
key: 'componentDidMount',
value: function componentDidMount() {
if (!canUseDOM) return;

if (!isReact16) {
this.node = document.createElement('div');
}
this.node.className = this.props.portalClassName;

var parent = getParentElement(this.props.parentSelector);
Expand Down Expand Up @@ -678,7 +682,7 @@ var Modal = function (_Component) {
return null;
}

if (!this.node) {
if (!this.node && isReact16) {
this.node = document.createElement('div');
}

Expand Down
Loading

0 comments on commit cc4577c

Please sign in to comment.