forked from p96170835/amis
fix
This commit is contained in:
parent
ee2351d212
commit
45819b22f2
|
@ -141,6 +141,11 @@ export default class Drawer extends React.Component<DrawerProps, object> {
|
||||||
handleSelfClose() {
|
handleSelfClose() {
|
||||||
const {onClose, store} = this.props;
|
const {onClose, store} = this.props;
|
||||||
|
|
||||||
|
// 如果有子弹框,那么就先不隐藏自己
|
||||||
|
if (store.dialogOpen !== false || store.drawerOpen !== false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// clear error
|
// clear error
|
||||||
store.updateMessage();
|
store.updateMessage();
|
||||||
onClose();
|
onClose();
|
||||||
|
|
Loading…
Reference in New Issue