浏览代码

fix: fix tooltip afterclose on motion false

代强 3 年之前
父节点
当前提交
23edd2a0cb
共有 1 个文件被更改,包括 1 次插入3 次删除
  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?.();
                     }
                 }}>
                 {