@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.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +12 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +14 -4
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +14 -4
- package/styles/auto-complete/_variables.scss +1 -1
- package/styles/combo-box/_variables.scss +1 -1
- package/styles/drop-down-base/_variables.scss +1 -1
- package/styles/drop-down-list/_variables.scss +1 -1
- package/styles/drop-down-tree/_variables.scss +1 -1
- package/styles/list-box/_variables.scss +1 -1
- package/styles/mention/_variables.scss +1 -1
- package/styles/multi-select/_variables.scss +1 -1
- package/.eslintrc.json +0 -263
- package/aceconfig.js +0 -17
- package/tslint.json +0 -111
|
@@ -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 =
|
|
5669
|
-
|
|
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;
|