fix: Modal[footer] could be set to null to hide totally, close: #5462

This commit is contained in:
Benjy Cui 2017-03-24 14:41:41 +08:00
parent ee2f025585
commit 43b155e7f6

View File

@ -161,7 +161,7 @@ export default class Modal extends React.Component<ModalProps, any> {
return (
<Dialog
onClose={this.handleCancel}
footer={footer || defaultFooter}
footer={footer === undefined ? defaultFooter : footer}
{...this.props}
visible={visible}
mousePosition={mousePosition}