coer-elements 0.0.31 → 0.0.33

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.
@@ -2504,7 +2504,7 @@ class CoerTreeAccordion {
2504
2504
  || (this.isCollapsed && element.classList.contains('active-link'));
2505
2505
  };
2506
2506
  /** */
2507
- this.IsMenu = (item) => item.hasOwnProperty('items');
2507
+ this.IsMenu = (item) => item.hasOwnProperty('items') && Tools.IsNotOnlyWhiteSpace(item.items);
2508
2508
  }
2509
2509
  get _tree() {
2510
2510
  return [...this.tree].concat([{ ...this.item }]);
@@ -2621,7 +2621,7 @@ class CoerSidenav {
2621
2621
  this.sidenav = viewChild.required('matSidenav');
2622
2622
  this.menuList = viewChildren(CoerTreeAccordion);
2623
2623
  /** */
2624
- this.IsMenu = (item) => item.hasOwnProperty('items');
2624
+ this.IsMenu = (item) => item.hasOwnProperty('items') && Tools.IsNotOnlyWhiteSpace(item.items);
2625
2625
  /** */
2626
2626
  this.GetIcon = (item) => {
2627
2627
  if (item && item.hasOwnProperty('icon') && item.icon.length > 0) {