@@ -134,7 +134,7 @@ const PopupInner = React.forwardRef<PopupInnerRef, PopupInnerProps>(
134
134
135
135
// ======================== Motion ========================
136
136
const motion = { ...getMotion ( props ) } ;
137
- [ 'onAppearEnd' , 'onEnterEnd' , 'onLeaveEnd' ] . forEach ( ( eventName ) => {
137
+ [ 'onAppearEnd' , 'onEnterEnd' , 'onLeaveEnd' ] . forEach ( eventName => {
138
138
const originHandler : MotionEndEventHandler = motion [ eventName ] ;
139
139
motion [ eventName ] = ( element , event ) => {
140
140
goNextStatus ( ) ;
@@ -143,7 +143,7 @@ const PopupInner = React.forwardRef<PopupInnerRef, PopupInnerProps>(
143
143
} ) ;
144
144
145
145
function onShowPrepare ( ) {
146
- return new Promise ( ( resolve ) => {
146
+ return new Promise ( resolve => {
147
147
prepareResolveRef . current = resolve ;
148
148
} ) ;
149
149
}
@@ -188,11 +188,11 @@ const PopupInner = React.forwardRef<PopupInnerRef, PopupInnerProps>(
188
188
< CSSMotion
189
189
visible = { visible }
190
190
ref = { elementRef }
191
+ leavedClassName = { `${ prefixCls } -hidden` }
191
192
{ ...motion }
192
193
onAppearPrepare = { onShowPrepare }
193
194
onEnterPrepare = { onShowPrepare }
194
195
removeOnLeave = { destroyPopupOnHide }
195
- leavedClassName = { `${ prefixCls } -hidden` }
196
196
>
197
197
{ ( { className : motionClassName , style : motionStyle } , motionRef ) => {
198
198
const mergedClassName = classNames (
0 commit comments