@porscheinformatik/clr-addons 12.9.0 → 12.9.1

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.
@@ -3390,6 +3390,7 @@ class ClrTreetable {
3390
3390
  }
3391
3391
  set ttRows(items) {
3392
3392
  this._ttRows = items;
3393
+ this.hasActionOverflow = false;
3393
3394
  this.initClickableRows();
3394
3395
  this.initEmpty();
3395
3396
  this.initActionOverflow();
@@ -3413,9 +3414,14 @@ class ClrTreetable {
3413
3414
  });
3414
3415
  }
3415
3416
  setActionOverflow(hasActionOverflow) {
3416
- this.hasActionOverflow = this.hasActionOverflow || hasActionOverflow;
3417
- if (this.hasActionOverflow) {
3418
- this._ttRows.forEach(ttRow => (ttRow.showActionOverflow = true));
3417
+ if (!this.hasActionOverflow && hasActionOverflow) {
3418
+ this.hasActionOverflow = true;
3419
+ // setTimeout needed, as this method needs to change data which shouldn't be changed anymore in this cycle
3420
+ setTimeout(() => {
3421
+ if (this.hasActionOverflow) {
3422
+ this._ttRows.forEach(ttRow => (ttRow.showActionOverflow = true));
3423
+ }
3424
+ });
3419
3425
  }
3420
3426
  }
3421
3427
  ngOnDestroy() {