@sd-angular/core 1.0.22 → 1.0.25

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.
@@ -2601,12 +2601,14 @@
2601
2601
  var idx2 = _this.localItems.indexOf(item);
2602
2602
  _this.localItems.splice(idx2, 1);
2603
2603
  _this.localItems = __spread(_this.localItems);
2604
+ }
2605
+ var idx1 = _this.items.indexOf(item);
2606
+ _this.items.splice(idx1, 1);
2607
+ _this.items = __spread(_this.items);
2608
+ if (_this.gridOption.type === 'local') {
2604
2609
  (_a = editor === null || editor === void 0 ? void 0 : editor.onRemove) === null || _a === void 0 ? void 0 : _a.call(editor, item, _this.localItems);
2605
2610
  }
2606
2611
  else {
2607
- var idx1 = _this.items.indexOf(item);
2608
- _this.items.splice(idx1, 1);
2609
- _this.items = __spread(_this.items);
2610
2612
  (_b = editor === null || editor === void 0 ? void 0 : editor.onRemove) === null || _b === void 0 ? void 0 : _b.call(editor, item, _this.items);
2611
2613
  }
2612
2614
  _this.ref.detectChanges();