@syncfusion/ej2-dropdowns 32.1.25 → 32.2.3
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/.eslintrc.json +263 -0
- package/aceconfig.js +17 -0
- 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 +7 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +7 -5
- 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 +8 -8
- package/src/multi-select/multi-select.js +7 -5
- package/tslint.json +111 -0
|
@@ -17242,7 +17242,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17242
17242
|
this.unwireListEvents();
|
|
17243
17243
|
this.wireListEvents();
|
|
17244
17244
|
};
|
|
17245
|
-
MultiSelect.prototype.initialValueUpdate = function (listItems, isInitialVirtualData) {
|
|
17245
|
+
MultiSelect.prototype.initialValueUpdate = function (listItems, isInitialVirtualData, isInitialRender) {
|
|
17246
17246
|
var _this = this;
|
|
17247
17247
|
if (this.list) {
|
|
17248
17248
|
var text = void 0;
|
|
@@ -17252,6 +17252,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17252
17252
|
this.chipCollectionWrapper.innerHTML = '';
|
|
17253
17253
|
}
|
|
17254
17254
|
this.removeListSelection();
|
|
17255
|
+
var formElement = closest(this.inputElement, 'form');
|
|
17255
17256
|
if (!isNullOrUndefined(this.value)) {
|
|
17256
17257
|
for (var index = 0; !isNullOrUndefined(this.value[index]); index++) {
|
|
17257
17258
|
value_2 = this.allowObjectBinding ?
|
|
@@ -17296,7 +17297,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17296
17297
|
}
|
|
17297
17298
|
else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
|
|
17298
17299
|
((!(this.dataSource instanceof DataManager)) ||
|
|
17299
|
-
(this.dataSource instanceof DataManager && isInitialVirtualData))
|
|
17300
|
+
(this.dataSource instanceof DataManager && isInitialVirtualData)) && (!this.isAngular || !isInitialRender ||
|
|
17301
|
+
(isNullOrUndefined(formElement) && listItems && listItems.length > 0))) {
|
|
17300
17302
|
this.value.splice(index, 1);
|
|
17301
17303
|
index -= 1;
|
|
17302
17304
|
}
|
|
@@ -19402,7 +19404,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19402
19404
|
this.viewPortInfo.startIndex = this.virtualItemStartIndex = 0;
|
|
19403
19405
|
this.viewPortInfo.endIndex = this.virtualItemEndIndex = this.viewPortInfo.startIndex > 0 ?
|
|
19404
19406
|
this.viewPortInfo.endIndex : this.itemCount;
|
|
19405
|
-
this.checkInitialValue();
|
|
19407
|
+
this.checkInitialValue(true);
|
|
19406
19408
|
if (this.element.hasAttribute('data-val')) {
|
|
19407
19409
|
this.element.setAttribute('data-val', 'false');
|
|
19408
19410
|
}
|
|
@@ -19582,7 +19584,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19582
19584
|
this.value = data.length > 0 ? data : null;
|
|
19583
19585
|
}
|
|
19584
19586
|
};
|
|
19585
|
-
MultiSelect.prototype.checkInitialValue = function () {
|
|
19587
|
+
MultiSelect.prototype.checkInitialValue = function (isInitialRender) {
|
|
19586
19588
|
var _this = this;
|
|
19587
19589
|
if (this.fields.disabled) {
|
|
19588
19590
|
this.removeDisabledItemsValue(this.value);
|
|
@@ -19669,7 +19671,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19669
19671
|
}
|
|
19670
19672
|
}
|
|
19671
19673
|
if (!(this.dataSource instanceof DataManager)) {
|
|
19672
|
-
this.initialValueUpdate(listItems_3, true);
|
|
19674
|
+
this.initialValueUpdate(listItems_3, true, isInitialRender);
|
|
19673
19675
|
this.initialUpdate();
|
|
19674
19676
|
}
|
|
19675
19677
|
else {
|