File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 53
53
"rc-util" : " ^5.6.1"
54
54
},
55
55
"devDependencies" : {
56
+ "@types/classnames" : " ^2.2.11" ,
56
57
"@types/enzyme" : " ^3.10.7" ,
57
58
"@types/jest" : " ^26.0.14" ,
58
59
"@types/react" : " ^16.9.2" ,
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export default function Dialog(props: IDialogChildProps) {
32
32
wrapClassName,
33
33
wrapProps,
34
34
onClose,
35
+ afterOpen,
35
36
afterClose,
36
37
37
38
// Dialog
@@ -68,6 +69,7 @@ export default function Dialog(props: IDialogChildProps) {
68
69
lastOutSideActiveElementRef . current = document . activeElement as HTMLElement ;
69
70
contentRef . current ?. focus ( ) ;
70
71
}
72
+ afterOpen ?.( ) ;
71
73
} else {
72
74
// Clean up scroll bar & focus back
73
75
setAnimatedVisible ( false ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export type IDialogPropTypes = {
8
8
mask ?: boolean ;
9
9
children ?: any ;
10
10
afterClose ?: ( ) => any ;
11
+ afterOpen ?: ( ) => any ;
11
12
onClose ?: ( e : SyntheticEvent ) => any ;
12
13
closable ?: boolean ;
13
14
maskClosable ?: boolean ;
You can’t perform that action at this time.
0 commit comments