mirror of https://github.com/ElemeFE/element
Tree: fix leaf state not update bug.
parent
e61ff12070
commit
34756d17ca
|
@ -343,6 +343,7 @@ export default class Node {
|
||||||
|
|
||||||
this.doCreateChildren(children, defaultProps);
|
this.doCreateChildren(children, defaultProps);
|
||||||
|
|
||||||
|
this.updateLeafState();
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback.call(this, children);
|
callback.call(this, children);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue