소스 검색

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?.();
                     }
                 }}>
                 {