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 ( return (
<Dialog <Dialog
onClose={this.handleCancel} onClose={this.handleCancel}
footer={footer || defaultFooter} footer={footer === undefined ? defaultFooter : footer}
{...this.props} {...this.props}
visible={visible} visible={visible}
mousePosition={mousePosition} mousePosition={mousePosition}

Loading…
Cancel
Save