Update snippets/ModalDialog.md
Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
@ -119,7 +119,7 @@ class Dialog extends React.Component {
|
||||
}));
|
||||
}
|
||||
modalClick() {
|
||||
if (this.props.closeOnClick) this.close();
|
||||
if (this.state.data.closeOnClick) this.close();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user