coer-elements 0.0.31 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {