Skip to content

Commit

Permalink
fix: modal.confirm closable invalid #3844 (#3845)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkwolf authored Mar 27, 2021
1 parent e30077d commit 73c71e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/modal/ConfirmDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
onCancel,
onOk,
close,
closable = false,
zIndex,
afterClose,
visible,
Expand Down Expand Up @@ -83,6 +84,7 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
keyboard={keyboard}
centered={centered}
getContainer={getContainer}
closable={closable}
>
<div class={`${contentPrefixCls}-body-wrapper`}>
<div class={`${contentPrefixCls}-body`}>
Expand Down
1 change: 1 addition & 0 deletions components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export interface ModalFuncProps {
class?: string;
visible?: boolean;
title?: VNodeTypes;
closable?: boolean;
content?: VNodeTypes;
// TODO: find out exact types
onOk?: (...args: any[]) => any;
Expand Down

0 comments on commit 73c71e1

Please sign in to comment.