diff --git a/lib/portal.js b/lib/portal.js index d126f35..452309c 100644 --- a/lib/portal.js +++ b/lib/portal.js @@ -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); } diff --git a/package.json b/package.json index 399621a..469c409 100644 --- a/package.json +++ b/package.json @@ -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",