diff --git a/lib/components/Modal.js b/lib/components/Modal.js index 0d1aba9b..5f409ff4 100644 --- a/lib/components/Modal.js +++ b/lib/components/Modal.js @@ -55,6 +55,7 @@ var Modal = React.createClass({ }, componentWillReceiveProps: function(newProps) { + sanitizeProps(newProps); this.renderPortal(newProps); }, @@ -75,7 +76,6 @@ var Modal = React.createClass({ ariaAppHider.toggle(props.isOpen, props.appElement); } - sanitizeProps(props); this.portal = renderSubtreeIntoContainer(this, ModalPortal(Assign({}, props, {defaultStyles: Modal.defaultStyles})), this.node); },