Explorar o código

Tree: fix lazyload bug

Dreamacro %!s(int64=8) %!d(string=hai) anos
pai
achega
79d1ff06f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/tree/src/model/node.js

+ 1 - 1
packages/tree/src/model/node.js

@@ -370,7 +370,7 @@ export default class Node {
   }
 
   loadData(callback, defaultProps = {}) {
-    if (this.store.lazy === true && this.store.load && !this.loaded && !this.loading) {
+    if (this.store.lazy === true && this.store.load && !this.loaded && (!this.loading || Object.keys(defaultProps).length)) {
       this.loading = true;
 
       const resolve = (children) => {