Explorar el Código

Tree: fix leaf state not update bug.

Furybean hace 8 años
padre
commit
34756d17ca
Se han modificado 1 ficheros con 1 adiciones y 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);
         }