@syncfusion/ej2-dropdowns 33.2.5 → 33.2.6
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 +10 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +10 -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 +2 -2
- package/src/drop-down-list/drop-down-list.js +6 -4
- package/src/list-box/list-box.js +0 -1
- package/src/multi-select/multi-select.js +4 -0
|
@@ -5704,7 +5704,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5704
5704
|
}
|
|
5705
5705
|
else if (this.enableVirtualization && this.getModuleName() !== 'autocomplete' && !this.isFiltering()) {
|
|
5706
5706
|
var value = this.getItemData().value;
|
|
5707
|
-
this.activeIndex = this.getIndexByValue(value);
|
|
5707
|
+
this.activeIndex = !isNullOrUndefined(value) ? this.getIndexByValue(value) : this.activeIndex;
|
|
5708
5708
|
var element = this.findListElement(this.list, 'li', 'data-value', value);
|
|
5709
5709
|
this.selectedLI = element;
|
|
5710
5710
|
element = null;
|
|
@@ -6942,14 +6942,16 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6942
6942
|
if (this.enableVirtualization) {
|
|
6943
6943
|
this.listItemHeight = this.getListHeight();
|
|
6944
6944
|
this.getSkeletonCount();
|
|
6945
|
+
this.skeletonCount = this.totalItemCount < (this.itemCount * 2) && ((!(this.dataSource instanceof DataManager)) ||
|
|
6946
|
+
((this.dataSource instanceof DataManager) && (this.totalItemCount <= this.itemCount))) ? 0 : this.skeletonCount;
|
|
6945
6947
|
this.updateVirtualizationProperties(this.itemCount, this.allowFiltering);
|
|
6946
|
-
if (this.index !== null) {
|
|
6947
|
-
this.activeIndex = this.index + this.skeletonCount;
|
|
6948
|
-
}
|
|
6949
6948
|
}
|
|
6950
6949
|
this.initValue();
|
|
6951
6950
|
this.selectedValueInfo = this.viewPortInfo;
|
|
6952
6951
|
if (this.enableVirtualization) {
|
|
6952
|
+
if (this.index !== null) {
|
|
6953
|
+
this.activeIndex = this.index + this.skeletonCount;
|
|
6954
|
+
}
|
|
6953
6955
|
this.activeIndex = this.activeIndex + this.skeletonCount;
|
|
6954
6956
|
}
|
|
6955
6957
|
}
|
|
@@ -19134,6 +19136,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
19134
19136
|
if (this.fields.disabled) {
|
|
19135
19137
|
this.removeDisabledItemsValue(this.value);
|
|
19136
19138
|
}
|
|
19139
|
+
if (this.enableVirtualization && !isNullOrUndefined(oldProp.value) && !isNullOrUndefined(newProp.value)
|
|
19140
|
+
&& !this.validateValues(newProp.value, oldProp.value)) {
|
|
19141
|
+
return;
|
|
19142
|
+
}
|
|
19137
19143
|
this.updateVal(this.value, oldProp.value, 'value', this.enableVirtualization);
|
|
19138
19144
|
this.addValidInputClass();
|
|
19139
19145
|
if (!this.closePopupOnSelect && this.isPopupOpen()) {
|
|
@@ -21389,7 +21395,6 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
21389
21395
|
this.list.classList.add('e-wrapper');
|
|
21390
21396
|
this.list.classList.add('e-lib');
|
|
21391
21397
|
if (this.element.tagName === 'EJS-LISTBOX') {
|
|
21392
|
-
this.element.setAttribute('tabindex', '0');
|
|
21393
21398
|
if (this.initLoad) {
|
|
21394
21399
|
this.element.appendChild(this.list);
|
|
21395
21400
|
}
|