Browse Source

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

blackmiaool 7 năm trước cách đây
mục cha
commit
cdb7a34136
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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) {