@syncfusion/ej2-dropdowns 34.1.30 → 34.1.32

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.
@@ -3275,6 +3275,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3275
3275
  this.initialRemoteRender = false;
3276
3276
  this.isNotSearchList = false;
3277
3277
  this.isTyped = false;
3278
+ this.isProgrammaticValueUpdate = false;
3278
3279
  this.isSelected = false;
3279
3280
  this.preventFocus = false;
3280
3281
  this.preventAutoFill = false;
@@ -5561,6 +5562,9 @@ let DropDownList = class DropDownList extends DropDownBase {
5561
5562
  }
5562
5563
  this.initial = false;
5563
5564
  }
5565
+ if (this.isProgrammaticValueUpdate && !isNullOrUndefined(this.value) && this.getModuleName() === 'combobox') {
5566
+ this.detachChangeEvent(null);
5567
+ }
5564
5568
  else if (this.getModuleName() === 'autocomplete' && this.value) {
5565
5569
  this.setInputValue();
5566
5570
  }
@@ -5665,8 +5669,11 @@ let DropDownList = class DropDownList extends DropDownBase {
5665
5669
  }
5666
5670
  checkAndFetchItemData(list, value, checkField, isOffline = false) {
5667
5671
  const fieldValue = this.fields.value.split('.');
5668
- let checkVal = list.some((x) => isNullOrUndefined(x[checkField]) && fieldValue.length > 1 ?
5669
- this.checkFieldValue(x, fieldValue) === value : x[checkField] === value);
5672
+ let checkVal = false;
5673
+ if (!isNullOrUndefined(list) && list.length > 0) {
5674
+ checkVal = list.some((x) => isNullOrUndefined(x[checkField]) && fieldValue.length > 1 ?
5675
+ this.checkFieldValue(x, fieldValue) === value : x[checkField] === value);
5676
+ }
5670
5677
  if (this.enableVirtualization && this.virtualGroupDataSource) {
5671
5678
  checkVal = this.virtualGroupDataSource.some((x) => isNullOrUndefined(x[checkField]) && fieldValue.length > 1 ?
5672
5679
  this.checkFieldValue(x, fieldValue) === value : x[checkField] === value);
@@ -7188,6 +7195,9 @@ let DropDownList = class DropDownList extends DropDownBase {
7188
7195
  this.isObjectInArray(newProp.value, [oldProp.value])) {
7189
7196
  return;
7190
7197
  }
7198
+ if (!this.initial && this.dataSource instanceof DataManager) {
7199
+ this.isProgrammaticValueUpdate = true;
7200
+ }
7191
7201
  if (this.enableVirtualization) {
7192
7202
  const isOfflineMode = this.dataSource instanceof DataManager &&
7193
7203
  this.dataSource.dataSource.offline === true;