mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-23 09:54:16 +08:00
fix: Modal[footer] could be set to null to hide totally, close: #5462
This commit is contained in:
parent
ee2f025585
commit
43b155e7f6
@ -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…
Reference in New Issue
Block a user