@siemens/element-ng 47.12.1 → 47.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -438,7 +438,6 @@ class SiTreeViewItemComponent {
438
438
  !!this.contextMenuItems()?.length);
439
439
  });
440
440
  stickyEndItems = this.treeViewComponent.horizontalScrolling;
441
- displayFolderState = this.treeViewComponent.hasAnyChildren;
442
441
  icons = this.treeViewComponent.computedIcons;
443
442
  savedElement;
444
443
  subscriptions = [];
@@ -517,13 +516,13 @@ class SiTreeViewItemComponent {
517
516
  return this.siTreeViewService.isGroupedItem(this.treeItem);
518
517
  }
519
518
  get showFolderStateStart() {
520
- return (this.displayFolderState &&
519
+ return (this.treeViewComponent.hasAnyChildren &&
521
520
  this.treeViewComponent.folderStateStart() &&
522
521
  !this.treeViewComponent.flatTree() &&
523
522
  (!!this.isGroupedItem || !this.siTreeViewService.groupedList));
524
523
  }
525
524
  get showFolderStateEnd() {
526
- return this.displayFolderState && !this.showFolderStateStart;
525
+ return this.treeViewComponent.hasAnyChildren && !this.showFolderStateStart;
527
526
  }
528
527
  get isExpanding() {
529
528
  return this.treeItem.state === 'expanding';