Browse Source

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

pull/5488/head
Benjy Cui 8 years ago
parent
commit
af12ca7434
  1. 2
      components/modal/Modal.tsx

2
components/modal/Modal.tsx

@ -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}

Loading…
Cancel
Save