Browse Source

fix: fix tooltip afterclose on motion false

代强 3 years ago
parent
commit
23edd2a0cb
1 changed files with 1 additions and 3 deletions
  1. 1 3
      packages/semi-ui/tooltip/index.tsx

+ 1 - 3
packages/semi-ui/tooltip/index.tsx

@@ -570,9 +570,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
                 onAnimationEnd={()=>{
                     if (transitionState === 'leave'){
                         this.didLeave();
-                        if (this.props.motion){
-                            this.props.afterClose?.();
-                        }
+                        this.props.afterClose?.();
                     }
                 }}>
                 {