Update snippets/ModalDialog.md

Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
Robert Mennell
2018-11-08 16:05:52 +08:00
committed by GitHub
parent bb4b5272fe
commit ae533920ea

View File

@ -110,7 +110,7 @@ class Dialog extends React.Component {
}));
}
modalClick() {
if (this.props.clickModal2Hide) this.close();
if (this.props.closeOnClick) this.close();
}
}
```