@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.
@@ -13503,8 +13503,8 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
13503
13503
  });
13504
13504
  }
13505
13505
  }
13506
- updateActionCompleteData(li, item) {
13507
- this.jsonData.push(item);
13506
+ updateActionCompleteData(li, item, index) {
13507
+ this.jsonData.splice(index, 0, item);
13508
13508
  }
13509
13509
  initToolbar() {
13510
13510
  const pos = this.toolbarSettings.position;
@@ -14042,7 +14042,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
14042
14042
  let objValue;
14043
14043
  const dupData = [];
14044
14044
  let itemIdx;
14045
- extend(dupData, [], this.listData);
14045
+ extend(dupData, [], this.jsonData);
14046
14046
  const removeIdxes = [];
14047
14047
  const removeLiIdxes = [];
14048
14048
  for (let j = 0; j < items.length; j++) {
@@ -14815,9 +14815,8 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
14815
14815
  fListBox.value = [];
14816
14816
  listData = listData
14817
14817
  .filter((data) => data.isHeader !== true);
14818
- tListBox.listData = listData;
14819
- tListBox.jsonData = jsonData;
14820
- if (this.listData.length == this.jsonData.length) {
14818
+ tListBox.listData = tListBox.jsonData = listData;
14819
+ if (fListBox.listData.length == fListBox.jsonData.length) {
14821
14820
  fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
14822
14821
  }
14823
14822
  else if (this.allowFiltering) {