@acorex/components 1.3.92 → 1.3.93

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.
@@ -8323,12 +8323,13 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
8323
8323
  enumerable: true,
8324
8324
  configurable: true
8325
8325
  });
8326
- AXSelectBoxComponent.prototype.setSelectedItemsChange = function (v) {
8326
+ AXSelectBoxComponent.prototype.setSelectedItemsChange = function (v, old) {
8327
8327
  var _this = this;
8328
+ if (old === void 0) { old = this.selectedItems; }
8328
8329
  if (!v) {
8329
8330
  v = [];
8330
8331
  }
8331
- var old = this.selectedItems;
8332
+ // const old = this.selectedItems;
8332
8333
  if (JSON.stringify(old) !== JSON.stringify(v)) {
8333
8334
  this._selectedItems = this.mode == 'single' ? v.slice(0, 1) : __spread(new Set(v)); //[...new Set(v[0])] : [...new Set(v)];
8334
8335
  this._selectedItems.forEach(function (c) { return (c.selected = true); });
@@ -8510,7 +8511,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
8510
8511
  _this.selectedItems.push(res);
8511
8512
  });
8512
8513
  // this.selectedItems.push(this.items.filter((c) => vv.includes(c[this.valueField])));
8513
- _this.setSelectedItemsChange(_this.selectedItems);
8514
+ _this.setSelectedItemsChange(_this.selectedItems, vv_1.length > 0 ? [1] : _this.selectedItems);
8514
8515
  }
8515
8516
  // this.selectedItems = this.items.filter((c) => v.includes(c[this.valueField]));
8516
8517
  }