We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 037c4b2 commit 612f097Copy full SHA for 612f097
modules/gui/HierarchyPainter.mjs
@@ -2890,8 +2890,9 @@ class HierarchyPainter extends BasePainter {
2890
if ((hitem._more === false) || (!hitem._parent && hitem._childs))
2891
return;
2892
2893
- if (hitem._childs && hitem._isopen) {
2894
- hitem._isopen = false;
+ // for the file expand always just toggle isopen flag
+ if (hitem._childs && (hitem._isopen || hitem._file)) {
2895
+ hitem._isopen = !hitem._isopen;
2896
if (!silent)
2897
this.updateTreeNode(hitem, d3cont);
2898
0 commit comments