Skip to content

Commit

Permalink
mui#1996 modal
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismcv committed Nov 21, 2015
1 parent 864a40b commit bf89e17
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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');
},


Expand Down

0 comments on commit bf89e17

Please sign in to comment.