From bf89e1757e93f44626271c1a807ff975b199426c Mon Sep 17 00:00:00 2001 From: Chris McVittie Date: Thu, 12 Nov 2015 16:36:47 +0000 Subject: [PATCH] #1996 modal --- src/dialog.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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'); },