diff --git a/src/dialog.jsx b/src/dialog.jsx index c324b8c619274f..8e51e60f4a8717 100644 --- a/src/dialog.jsx +++ b/src/dialog.jsx @@ -345,10 +345,7 @@ let DialogInline = React.createClass({ }, _requestClose(buttonClicked) { - warning(!this.props.hasOwnProperty('modal'), - 'modal will be removed in favor of explicitly setting open and onRequestClose'); - - if (!buttonClicked && this.props.modal) { + if (!buttonClicked || this.props.modal) { return; } @@ -464,8 +461,6 @@ const Dialog = React.createClass({ warning(!(typeof this.props.onDismiss === 'function'), 'onDismiss will be removed in favor of explicitly setting open and can be replaced by onRequestClose'); - warning(!this.props.hasOwnProperty('modal'), - 'modal will be removed in favor of explicitly setting open and onRequestClose'); },