File tree 3 files changed +5
-36
lines changed 3 files changed +5
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rc-dialog" ,
3
- "version" : " 5.0.2 " ,
3
+ "version" : " 5.0.3 " ,
4
4
"description" : " dialog ui component for react" ,
5
5
"keywords" : [
6
6
" react" ,
Original file line number Diff line number Diff line change @@ -81,10 +81,8 @@ const Dialog = React.createClass({
81
81
}
82
82
} ,
83
83
84
- onAnimateEnd ( key , visible ) {
85
- if ( ! visible ) {
86
- this . props . onAfterClose ( ) ;
87
- }
84
+ onAnimateLeave ( ) {
85
+ this . props . onAfterClose ( ) ;
88
86
} ,
89
87
90
88
onMaskClick ( ) {
@@ -183,7 +181,7 @@ const Dialog = React.createClass({
183
181
// add key for align to keep animate children stable
184
182
return ( < Animate key = "dialog"
185
183
showProp = "dialogVisible"
186
- onEnd = { this . onAnimateEnd }
184
+ onLeave = { this . onAnimateLeave }
187
185
transitionName = { transitionName }
188
186
component = ""
189
187
transitionAppear = { true } >
@@ -215,7 +213,7 @@ const Dialog = React.createClass({
215
213
maskElement = < div { ...maskProps } className = { `${ props . prefixCls } -mask` } key = "mask" /> ;
216
214
if ( maskTransition ) {
217
215
maskElement = ( < Animate key = "mask" showProp = "data-visible" transitionAppear = { true } component = ""
218
- transitionName = { maskTransition } > { maskElement } </ Animate > ) ;
216
+ transitionName = { maskTransition } > { maskElement } </ Animate > ) ;
219
217
}
220
218
}
221
219
return maskElement ;
You can’t perform that action at this time.
0 commit comments