Explorar o código

Tree: fix leaf state not update bug.

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

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

@@ -343,6 +343,7 @@ export default class Node {
 
         this.doCreateChildren(children, defaultProps);
 
+        this.updateLeafState();
         if (callback) {
           callback.call(this, children);
         }