Tree: reserve node expanding state while filtering

pull/7841/merge
Leopoldthecoder 2017-10-30 19:03:54 +08:00 committed by 杨奕
parent 3eb06dcb0e
commit 0cca820dac
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export default class TreeStore {
node.visible = allHidden === false;
}
}
if (!value) return;
if (node.visible && !node.isLeaf) node.expand();
};