@syncfusion/ej2-dropdowns 20.1.50 → 20.1.51

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.
@@ -1034,6 +1034,7 @@ let DropDownBase = class DropDownBase extends Component {
1034
1034
  dataSource = this.selectData;
1035
1035
  }
1036
1036
  }
1037
+ dataSource = this.getModuleName() === 'combobox' && this.selectData && dataSource instanceof Array && dataSource.length < this.selectData.length ? this.selectData : dataSource;
1037
1038
  this.setListData(dataSource, fields, query);
1038
1039
  }
1039
1040
  }
@@ -14283,7 +14284,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
14283
14284
  let filterQuery = query ? query.clone() : this.query ? this.query.clone() : new Query();
14284
14285
  if (this.allowFiltering) {
14285
14286
  const filterType = this.inputString === '' ? 'contains' : this.filterType;
14286
- const dataType = this.typeOfData(this.dataSource).typeof;
14287
+ const dataType = this.typeOfData(this.jsonData).typeof;
14287
14288
  if (!(this.dataSource instanceof DataManager) && dataType === 'string' || dataType === 'number') {
14288
14289
  filterQuery.where('', filterType, this.inputString, this.ignoreCase, this.ignoreAccent);
14289
14290
  }