mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
fix #12396. Support expandedKeys when init
This commit is contained in:
parent
05e4c56ca3
commit
1c85bb3b62
@ -61,7 +61,7 @@ export default class DirectoryTree extends React.Component<DirectoryTreeProps, D
|
|||||||
} else if (defaultExpandParent) {
|
} else if (defaultExpandParent) {
|
||||||
this.state.expandedKeys = conductExpandParent(expandedKeys || defaultExpandedKeys, keyEntities);
|
this.state.expandedKeys = conductExpandParent(expandedKeys || defaultExpandedKeys, keyEntities);
|
||||||
} else {
|
} else {
|
||||||
this.state.expandedKeys = defaultExpandedKeys;
|
this.state.expandedKeys = expandedKeys || defaultExpandedKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.onDebounceExpand = debounce(this.expandFolderNode, 200, {
|
this.onDebounceExpand = debounce(this.expandFolderNode, 200, {
|
||||||
|
Loading…
Reference in New Issue
Block a user