Skip to content

Commit d5952c0

Browse files
committed
fix: modal ts error for parentContext #4305
close #4305
1 parent da10933 commit d5952c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/modal/Modal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export interface ModalFuncProps {
123123
autoFocusButton?: null | 'ok' | 'cancel';
124124
transitionName?: string;
125125
maskTransitionName?: string;
126+
parentContext?: any;
126127
}
127128

128129
type getContainerFunc = () => HTMLElement;

components/modal/confirm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { destroyFns } from './Modal';
55

66
import Omit from 'omit.js';
77

8-
export default function confirm(config: ModalFuncProps & { parentContext?: any }) {
8+
export default function confirm(config: ModalFuncProps) {
99
const div = document.createElement('div');
1010
document.body.appendChild(div);
1111
let currentConfig = { ...Omit(config, ['parentContext']), close, visible: true } as any;

0 commit comments

Comments
 (0)