@acorex/components 1.3.90 → 1.3.91

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.
@@ -8593,9 +8593,11 @@
8593
8593
  // this.searchText = e.value;
8594
8594
  // this.text = e.value;
8595
8595
  // this.items = [];
8596
- var t = this.items.length;
8597
- for (var i = 0; i < t; i++) {
8598
- this.items.pop();
8596
+ if (this.items) {
8597
+ var t = this.items.length;
8598
+ for (var i = 0; i < t; i++) {
8599
+ this.items.pop();
8600
+ }
8599
8601
  }
8600
8602
  // this.items.forEach((element) => {
8601
8603
  // this.items.pop();
@@ -8877,9 +8879,11 @@
8877
8879
  // this.items.forEach((element) => {
8878
8880
  // this.items.pop();
8879
8881
  // });
8880
- var t = this.items.length;
8881
- for (var i = 0; i < t; i++) {
8882
- this.items.pop();
8882
+ if (this.items) {
8883
+ var t = this.items.length;
8884
+ for (var i = 0; i < t; i++) {
8885
+ this.items.pop();
8886
+ }
8883
8887
  }
8884
8888
  this.fetch(params);
8885
8889
  }
@@ -8944,6 +8948,7 @@
8944
8948
  };
8945
8949
  AXSelectBoxComponent.prototype.handleKeyEventSearch = function (e) {
8946
8950
  var _this = this;
8951
+ var _a;
8947
8952
  if (this.disabled || this.readonly) {
8948
8953
  this.dropdown.close();
8949
8954
  setTimeout(function () {
@@ -9028,7 +9033,7 @@
9028
9033
  }
9029
9034
  }
9030
9035
  else {
9031
- if (this.text && this.itemsFiltered.length === 1) {
9036
+ if (this.text && ((_a = this.itemsFiltered) === null || _a === void 0 ? void 0 : _a.length) === 1) {
9032
9037
  this.setSelectedItems(this.itemsFiltered, true);
9033
9038
  }
9034
9039
  if (this.mode == 'single') {
@@ -13931,7 +13936,6 @@
13931
13936
  _this.isSelectedItem = true;
13932
13937
  }
13933
13938
  }
13934
- debugger;
13935
13939
  });
13936
13940
  }
13937
13941
  else {