fix prefixCls is missing in restProps

This commit is contained in:
yoyo837 2018-07-31 18:38:07 +08:00 committed by 偏右
parent ef31697d26
commit 45e9b2a937

View File

@ -195,6 +195,7 @@ export default class Modal extends React.Component<ModalProps, {}> {
return (
<Dialog
{...restProps}
prefixCls={prefixCls}
className={classNames({ [`${prefixCls}-centered`]: centered }, className)}
footer={footer === undefined ? defaultFooter : footer}
visible={visible}