mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Propagate expanded state all the way to the root
This commit is contained in:
parent
e9650a94f3
commit
40f73b00ce
@ -199,7 +199,10 @@ function enableBreadcrumbTree(options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (node.state.expanded) {
|
if (node.state.expanded) {
|
||||||
|
while (node.parent != null) {
|
||||||
nodes[node.parent].state.expanded = true;
|
nodes[node.parent].state.expanded = true;
|
||||||
|
node = nodes[node.parent]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user