diff --git a/src/Modal.js b/src/Modal.js index a7dd4ca82d..41b1a9c0ab 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -39,7 +39,7 @@ module.exports = { var self = this; var closeDialog = function() { - React.unmountComponentAtNode(self.getOrCreateContainer()); + ReactDOM.unmountComponentAtNode(self.getOrCreateContainer()); if (props && props.onFinished) props.onFinished.apply(null, arguments); }; @@ -62,7 +62,7 @@ module.exports = { var self = this; var closeDialog = function() { - React.unmountComponentAtNode(self.getOrCreateContainer()); + ReactDOM.unmountComponentAtNode(self.getOrCreateContainer()); if (props && props.onFinished) props.onFinished.apply(null, arguments); };