@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
|
@@ -5587,7 +5587,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5587
5587
|
}
|
|
5588
5588
|
else if (this.enableVirtualization && this.getModuleName() !== 'autocomplete' && !this.isFiltering()) {
|
|
5589
5589
|
const value = this.getItemData().value;
|
|
5590
|
-
this.activeIndex = this.getIndexByValue(value);
|
|
5590
|
+
this.activeIndex = !isNullOrUndefined(value) ? this.getIndexByValue(value) : this.activeIndex;
|
|
5591
5591
|
let element = this.findListElement(this.list, 'li', 'data-value', value);
|
|
5592
5592
|
this.selectedLI = element;
|
|
5593
5593
|
element = null;
|
|
@@ -6807,14 +6807,16 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6807
6807
|
if (this.enableVirtualization) {
|
|
6808
6808
|
this.listItemHeight = this.getListHeight();
|
|
6809
6809
|
this.getSkeletonCount();
|
|
6810
|
+
this.skeletonCount = this.totalItemCount < (this.itemCount * 2) && ((!(this.dataSource instanceof DataManager)) ||
|
|
6811
|
+
((this.dataSource instanceof DataManager) && (this.totalItemCount <= this.itemCount))) ? 0 : this.skeletonCount;
|
|
6810
6812
|
this.updateVirtualizationProperties(this.itemCount, this.allowFiltering);
|
|
6811
|
-
if (this.index !== null) {
|
|
6812
|
-
this.activeIndex = this.index + this.skeletonCount;
|
|
6813
|
-
}
|
|
6814
6813
|
}
|
|
6815
6814
|
this.initValue();
|
|
6816
6815
|
this.selectedValueInfo = this.viewPortInfo;
|
|
6817
6816
|
if (this.enableVirtualization) {
|
|
6817
|
+
if (this.index !== null) {
|
|
6818
|
+
this.activeIndex = this.index + this.skeletonCount;
|
|
6819
|
+
}
|
|
6818
6820
|
this.activeIndex = this.activeIndex + this.skeletonCount;
|
|
6819
6821
|
}
|
|
6820
6822
|
}
|
|
@@ -18840,6 +18842,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
18840
18842
|
if (this.fields.disabled) {
|
|
18841
18843
|
this.removeDisabledItemsValue(this.value);
|
|
18842
18844
|
}
|
|
18845
|
+
if (this.enableVirtualization && !isNullOrUndefined(oldProp.value) && !isNullOrUndefined(newProp.value)
|
|
18846
|
+
&& !this.validateValues(newProp.value, oldProp.value)) {
|
|
18847
|
+
return;
|
|
18848
|
+
}
|
|
18843
18849
|
this.updateVal(this.value, oldProp.value, 'value', this.enableVirtualization);
|
|
18844
18850
|
this.addValidInputClass();
|
|
18845
18851
|
if (!this.closePopupOnSelect && this.isPopupOpen()) {
|
|
@@ -21056,7 +21062,6 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
21056
21062
|
this.list.classList.add('e-wrapper');
|
|
21057
21063
|
this.list.classList.add('e-lib');
|
|
21058
21064
|
if (this.element.tagName === 'EJS-LISTBOX') {
|
|
21059
|
-
this.element.setAttribute('tabindex', '0');
|
|
21060
21065
|
if (this.initLoad) {
|
|
21061
21066
|
this.element.appendChild(this.list);
|
|
21062
21067
|
}
|