From fe2728cb20d6c79d9307758bcebe0d65243ceefe Mon Sep 17 00:00:00 2001 From: zombiej Date: Thu, 30 Aug 2018 22:27:32 +0800 Subject: [PATCH] fix #11969. Pass centered prop to popup modal --- components/modal/confirm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/modal/confirm.tsx b/components/modal/confirm.tsx index ccd29ff0ca..cdf5cc69c2 100644 --- a/components/modal/confirm.tsx +++ b/components/modal/confirm.tsx @@ -14,7 +14,7 @@ interface ConfirmDialogProps extends ModalFuncProps { const IS_REACT_16 = !!ReactDOM.createPortal; const ConfirmDialog = (props: ConfirmDialogProps) => { - const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard } = props; + const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard, centered } = props; const iconType = props.iconType || 'question-circle'; const okType = props.okType || 'primary'; const prefixCls = props.prefixCls || 'ant-confirm'; @@ -57,6 +57,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => { zIndex={zIndex} afterClose={afterClose} keyboard={keyboard} + centered={centered} >