Skip to content

Commit 73c71e1

Browse files
authored
fix: modal.confirm closable invalid #3844 (#3845)
1 parent e30077d commit 73c71e1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/modal/ConfirmDialog.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
1616
onCancel,
1717
onOk,
1818
close,
19+
closable = false,
1920
zIndex,
2021
afterClose,
2122
visible,
@@ -83,6 +84,7 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
8384
keyboard={keyboard}
8485
centered={centered}
8586
getContainer={getContainer}
87+
closable={closable}
8688
>
8789
<div class={`${contentPrefixCls}-body-wrapper`}>
8890
<div class={`${contentPrefixCls}-body`}>

components/modal/Modal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export interface ModalFuncProps {
102102
class?: string;
103103
visible?: boolean;
104104
title?: VNodeTypes;
105+
closable?: boolean;
105106
content?: VNodeTypes;
106107
// TODO: find out exact types
107108
onOk?: (...args: any[]) => any;

0 commit comments

Comments
 (0)