feat: expand the node expanded to

This commit is contained in:
EnixCoda 2018-11-09 11:43:54 +08:00
parent 0f6d13d2c4
commit 1208886efd
No known key found for this signature in database
GPG key ID: 6825847C88AA329A

View file

@ -148,6 +148,9 @@ export default class VisibleNodesGenerator {
}
}
const node = findNode(root)
if (node) {
this.setExpand(node, true)
}
this.focusNode(node)
return node
}