igniteui-angular 19.2.9 → 19.2.10

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.
@@ -69272,7 +69272,7 @@ class IgxGridBaseDirective {
69272
69272
  });
69273
69273
  }
69274
69274
  getColumnList() {
69275
- return this.columnList.toArray();
69275
+ return this.columnList.toArray().filter((col) => col.grid === this);
69276
69276
  }
69277
69277
  /**
69278
69278
  * @hidden
@@ -69326,6 +69326,9 @@ class IgxGridBaseDirective {
69326
69326
  let removed = false;
69327
69327
  let pinning = false;
69328
69328
  diff.forEachAddedItem((record) => {
69329
+ if (record.item.grid !== this) {
69330
+ return;
69331
+ }
69329
69332
  added = true;
69330
69333
  if (record.item.pinned) {
69331
69334
  this._pinnedColumns.push(record.item);
@@ -69335,11 +69338,14 @@ class IgxGridBaseDirective {
69335
69338
  this._unpinnedColumns.push(record.item);
69336
69339
  }
69337
69340
  });
69338
- this.initColumns(this.columnList.toArray(), (col) => this.columnInit.emit(col));
69341
+ this.initColumns(this.getColumnList(), (col) => this.columnInit.emit(col));
69339
69342
  if (pinning) {
69340
69343
  this.initPinning();
69341
69344
  }
69342
69345
  diff.forEachRemovedItem((record) => {
69346
+ if (record.item.grid !== this) {
69347
+ return;
69348
+ }
69343
69349
  const isColumnGroup = record.item instanceof IgxColumnGroupComponent;
69344
69350
  if (!isColumnGroup) {
69345
69351
  // Clear Grouping