@@ -134,7 +134,7 @@ const PopupInner = React.forwardRef<PopupInnerRef, PopupInnerProps>(
134134
135135 // ======================== Motion ========================
136136 const motion = { ...getMotion ( props ) } ;
137- [ 'onAppearEnd' , 'onEnterEnd' , 'onLeaveEnd' ] . forEach ( ( eventName ) => {
137+ [ 'onAppearEnd' , 'onEnterEnd' , 'onLeaveEnd' ] . forEach ( eventName => {
138138 const originHandler : MotionEndEventHandler = motion [ eventName ] ;
139139 motion [ eventName ] = ( element , event ) => {
140140 goNextStatus ( ) ;
@@ -143,7 +143,7 @@ const PopupInner = React.forwardRef<PopupInnerRef, PopupInnerProps>(
143143 } ) ;
144144
145145 function onShowPrepare ( ) {
146- return new Promise ( ( resolve ) => {
146+ return new Promise ( resolve => {
147147 prepareResolveRef . current = resolve ;
148148 } ) ;
149149 }
@@ -188,11 +188,11 @@ const PopupInner = React.forwardRef<PopupInnerRef, PopupInnerProps>(
188188 < CSSMotion
189189 visible = { visible }
190190 ref = { elementRef }
191+ leavedClassName = { `${ prefixCls } -hidden` }
191192 { ...motion }
192193 onAppearPrepare = { onShowPrepare }
193194 onEnterPrepare = { onShowPrepare }
194195 removeOnLeave = { destroyPopupOnHide }
195- leavedClassName = { `${ prefixCls } -hidden` }
196196 >
197197 { ( { className : motionClassName , style : motionStyle } , motionRef ) => {
198198 const mergedClassName = classNames (
0 commit comments