From 6c6b83957b4a0a250ed0d42751cdbc08171ac7ad Mon Sep 17 00:00:00 2001 From: Alexey Svetliakov Date: Mon, 6 Jun 2016 20:32:08 +0200 Subject: [PATCH] Fixed for react 15.1.0 --- lib/portal.js | 7 ++++++- package.json | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) 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",