Skip to content

Commit cc4577c

Browse files
committed
Release 3.0.0-rc2.
1 parent 1260850 commit cc4577c

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-modal",
3-
"version": "3.0.0-rc1",
3+
"version": "3.0.0-rc2",
44
"homepage": "https://github.com/reactjs/react-modal",
55
"authors": [
66
"Ryan Florence",

dist/react-modal.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ var Modal = function (_Component) {
618618
key: 'componentDidMount',
619619
value: function componentDidMount() {
620620
if (!canUseDOM) return;
621+
622+
if (!isReact16) {
623+
this.node = document.createElement('div');
624+
}
621625
this.node.className = this.props.portalClassName;
622626

623627
var parent = getParentElement(this.props.parentSelector);
@@ -678,7 +682,7 @@ var Modal = function (_Component) {
678682
return null;
679683
}
680684

681-
if (!this.node) {
685+
if (!this.node && isReact16) {
682686
this.node = document.createElement('div');
683687
}
684688

0 commit comments

Comments
 (0)