@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
|
@@ -3382,6 +3382,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3382
3382
|
this.initialRemoteRender = false;
|
|
3383
3383
|
this.isNotSearchList = false;
|
|
3384
3384
|
this.isTyped = false;
|
|
3385
|
+
this.isProgrammaticValueUpdate = false;
|
|
3385
3386
|
this.isSelected = false;
|
|
3386
3387
|
this.preventFocus = false;
|
|
3387
3388
|
this.preventAutoFill = false;
|
|
@@ -5678,6 +5679,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5678
5679
|
}
|
|
5679
5680
|
this.initial = false;
|
|
5680
5681
|
}
|
|
5682
|
+
if (this.isProgrammaticValueUpdate && !isNullOrUndefined(this.value) && this.getModuleName() === 'combobox') {
|
|
5683
|
+
this.detachChangeEvent(null);
|
|
5684
|
+
}
|
|
5681
5685
|
else if (this.getModuleName() === 'autocomplete' && this.value) {
|
|
5682
5686
|
this.setInputValue();
|
|
5683
5687
|
}
|
|
@@ -5784,10 +5788,13 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5784
5788
|
var _this = this;
|
|
5785
5789
|
if (isOffline === void 0) { isOffline = false; }
|
|
5786
5790
|
var fieldValue = this.fields.value.split('.');
|
|
5787
|
-
var checkVal =
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
+
var checkVal = false;
|
|
5792
|
+
if (!isNullOrUndefined(list) && list.length > 0) {
|
|
5793
|
+
checkVal = list.some(function (x) {
|
|
5794
|
+
return isNullOrUndefined(x[checkField]) && fieldValue.length > 1 ?
|
|
5795
|
+
_this.checkFieldValue(x, fieldValue) === value : x[checkField] === value;
|
|
5796
|
+
});
|
|
5797
|
+
}
|
|
5791
5798
|
if (this.enableVirtualization && this.virtualGroupDataSource) {
|
|
5792
5799
|
checkVal = this.virtualGroupDataSource.some(function (x) {
|
|
5793
5800
|
return isNullOrUndefined(x[checkField]) && fieldValue.length > 1 ?
|
|
@@ -7324,6 +7331,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
7324
7331
|
this_1.isObjectInArray(newProp.value, [oldProp.value])) {
|
|
7325
7332
|
return { value: void 0 };
|
|
7326
7333
|
}
|
|
7334
|
+
if (!this_1.initial && this_1.dataSource instanceof DataManager) {
|
|
7335
|
+
this_1.isProgrammaticValueUpdate = true;
|
|
7336
|
+
}
|
|
7327
7337
|
if (this_1.enableVirtualization) {
|
|
7328
7338
|
var isOfflineMode = this_1.dataSource instanceof DataManager &&
|
|
7329
7339
|
this_1.dataSource.dataSource.offline === true;
|