Skip to content

Commit

Permalink
Fixed #72
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 24, 2017
1 parent 909fd89 commit 7d7eda0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Dialog extends Component {
width: PropTypes.string,
height: PropTypes.string,
modal: PropTypes.bool,
onHide: PropTypes.func,
onHide: PropTypes.func.isRequired,
onShow: PropTypes.func,
draggable: PropTypes.bool
};
Expand Down Expand Up @@ -105,9 +105,7 @@ export class Dialog extends Component {
hide() {
this.setState({visible:false});

if(this.props.onHide) {
this.props.onHide();
}
this.props.onHide();

if(this.props.modal) {
this.disableModality();
Expand Down

0 comments on commit 7d7eda0

Please sign in to comment.