Эх сурвалжийг харах

fix loading overflow:hidden removal issue (#469)

杨奕 8 жил өмнө
parent
commit
4495877dff

+ 1 - 0
CHANGELOG.md

@@ -12,6 +12,7 @@
 - 修复 Autocomplete 的弹出框不会消失 #439
 - 修复 DatePicker 弹出框样式溢出边框 #318
 - 新增 Input 图标的点击事件 #444
+- 修复 Loading 关闭后有几率滚动失效的问题
 
 #### 非兼容性更新
 

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

@@ -100,7 +100,9 @@ exports.install = Vue => {
     },
 
     update: function(el, binding) {
-      toggleLoading(el, binding);
+      if (binding.oldValue !== binding.value) {
+        toggleLoading(el, binding);
+      }
     },
 
     unbind: function(el, binding) {