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 12, 2015
1 parent a7566df commit 57fba4b
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

1 comment on commit 57fba4b

@shaurya947
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.