Skip to content

Commit

Permalink
Fixed for react 15.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetliakov committed Jun 6, 2016
1 parent 100e9ef commit 6c6b839
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion lib/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ export default class Portal extends React.Component {
this.node.className = props.className;
}
if (props.style) {
CSSPropertyOperations.setValueForStyles(this.node, props.style);
// React 15.1.0+ requires third parameter in debug mode
/* eslint-disable no-underscore-dangle */
CSSPropertyOperations.setValueForStyles(this.node,
props.style,
this._reactInternalInstance);
/* eslint-enable no-underscore-dangle */
}
document.body.appendChild(this.node);
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
"jsdom": "^9.0.0",
"mocha": "^2.3.4",
"mocha-eslint": "^2.0.2",
"react": "^15.0.2",
"react-addons-test-utils": "^15.0.2",
"react-dom": "^15.0.2",
"react": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-dom": "^15.1.0",
"rimraf": "^2.5.0",
"sinon": "^1.17.4",
"tween.js": "^16.3.1",
Expand Down

0 comments on commit 6c6b839

Please sign in to comment.