@syncfusion/ej2-dropdowns 20.2.40 → 20.2.43

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.
@@ -13707,8 +13707,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
13707
13707
  });
13708
13708
  }
13709
13709
  };
13710
- ListBox.prototype.updateActionCompleteData = function (li, item) {
13711
- this.jsonData.push(item);
13710
+ ListBox.prototype.updateActionCompleteData = function (li, item, index) {
13711
+ this.jsonData.splice(index, 0, item);
13712
13712
  };
13713
13713
  ListBox.prototype.initToolbar = function () {
13714
13714
  var pos = this.toolbarSettings.position;
@@ -14253,7 +14253,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
14253
14253
  var objValue = void 0;
14254
14254
  var dupData = [];
14255
14255
  var itemIdx = void 0;
14256
- extend(dupData, [], this.listData);
14256
+ extend(dupData, [], this.jsonData);
14257
14257
  var removeIdxes = [];
14258
14258
  var removeLiIdxes = [];
14259
14259
  for (var j = 0; j < items.length; j++) {
@@ -15040,9 +15040,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15040
15040
  fListBox.value = [];
15041
15041
  listData = listData
15042
15042
  .filter(function (data) { return data.isHeader !== true; });
15043
- tListBox.listData = listData;
15044
- tListBox.jsonData = jsonData;
15045
- if (this.listData.length == this.jsonData.length) {
15043
+ tListBox.listData = tListBox.jsonData = listData;
15044
+ if (fListBox.listData.length == fListBox.jsonData.length) {
15046
15045
  fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
15047
15046
  }
15048
15047
  else if (this.allowFiltering) {