소스 검색

Tooltip: invoke 'doDestory' manually when disabled (#10498)

blackmiaool 7 년 전
부모
커밋
cdb7a34136
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      packages/tooltip/src/main.js

+ 4 - 0
packages/tooltip/src/main.js

@@ -191,6 +191,10 @@ export default {
         clearTimeout(this.timeoutPending);
       }
       this.showPopper = false;
+
+      if (this.disabled) {
+        this.doDestroy();
+      }
     },
 
     setExpectedState(expectedState) {