@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.
@@ -8529,12 +8529,13 @@
8529
8529
  enumerable: true,
8530
8530
  configurable: true
8531
8531
  });
8532
- AXSelectBoxComponent.prototype.setSelectedItemsChange = function (v) {
8532
+ AXSelectBoxComponent.prototype.setSelectedItemsChange = function (v, old) {
8533
8533
  var _this = this;
8534
+ if (old === void 0) { old = this.selectedItems; }
8534
8535
  if (!v) {
8535
8536
  v = [];
8536
8537
  }
8537
- var old = this.selectedItems;
8538
+ // const old = this.selectedItems;
8538
8539
  if (JSON.stringify(old) !== JSON.stringify(v)) {
8539
8540
  this._selectedItems = this.mode == 'single' ? v.slice(0, 1) : __spread(new Set(v)); //[...new Set(v[0])] : [...new Set(v)];
8540
8541
  this._selectedItems.forEach(function (c) { return (c.selected = true); });
@@ -8716,7 +8717,7 @@
8716
8717
  _this.selectedItems.push(res);
8717
8718
  });
8718
8719
  // this.selectedItems.push(this.items.filter((c) => vv.includes(c[this.valueField])));
8719
- _this.setSelectedItemsChange(_this.selectedItems);
8720
+ _this.setSelectedItemsChange(_this.selectedItems, vv_1.length > 0 ? [1] : _this.selectedItems);
8720
8721
  }
8721
8722
  // this.selectedItems = this.items.filter((c) => v.includes(c[this.valueField]));
8722
8723
  }