瀏覽代碼

Loading: remove parent class when directive is unbound

Leopoldthecoder 7 年之前
父節點
當前提交
42849a89fe
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/loading/src/directive.js

+ 1 - 0
packages/loading/src/directive.js

@@ -107,6 +107,7 @@ exports.install = Vue => {
         el.mask &&
         el.mask.parentNode &&
         el.mask.parentNode.removeChild(el.mask);
+        toggleLoading(el, { value: false, modifiers: binding.modifiers });
       }
     }
   });