}
openDialog = () => {
+ this.componentDidMount();
this.setState({ open: true });
}
}
renderDialog() {
- return <Dialog
+ return this.state.open ? <Dialog
open={this.state.open}
onClose={this.closeDialog}
fullWidth
color='primary'
onClick={this.submit}>Ok</Button>
</DialogActions>
- </Dialog>;
+ </Dialog> : null;
}
});