@syncfusion/ej2-dropdowns 35.1.41 → 35.1.43
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 +17 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +17 -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 +5 -5
- package/src/common/virtual-scroll.js +3 -1
- package/src/multi-select/multi-select.js +14 -3
|
@@ -413,7 +413,9 @@ class VirtualScroll {
|
|
|
413
413
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
414
414
|
}
|
|
415
415
|
this.parent.updateVirtualReOrderList(true);
|
|
416
|
-
|
|
416
|
+
const totalCount = this.parent.dataSource instanceof DataManager
|
|
417
|
+
? this.parent.totalItemCount : this.parent.dataSource.length;
|
|
418
|
+
if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== totalCount) {
|
|
417
419
|
const oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
418
420
|
if (oldUlElement) {
|
|
419
421
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
@@ -15509,8 +15511,16 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15509
15511
|
}
|
|
15510
15512
|
}
|
|
15511
15513
|
updateAriaActiveDescendant() {
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
+
const activeItem = !isNullOrUndefined(this.ulElement)
|
|
15515
|
+
? this.ulElement.getElementsByClassName('e-item-focus')[0]
|
|
15516
|
+
: null;
|
|
15517
|
+
if (!isNullOrUndefined(activeItem) && this.isPopupOpen()) {
|
|
15518
|
+
attributes(this.inputElement, {
|
|
15519
|
+
'aria-activedescendant': activeItem.id
|
|
15520
|
+
});
|
|
15521
|
+
}
|
|
15522
|
+
else if (!isNullOrUndefined(this.inputElement)) {
|
|
15523
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
15514
15524
|
}
|
|
15515
15525
|
}
|
|
15516
15526
|
pageUpSelection(steps, isVirtualKeyAction) {
|
|
@@ -17755,6 +17765,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
17755
17765
|
}
|
|
17756
17766
|
});
|
|
17757
17767
|
this.updatePopupHeightOnFilter();
|
|
17768
|
+
this.updateAriaActiveDescendant();
|
|
17758
17769
|
}
|
|
17759
17770
|
search(e) {
|
|
17760
17771
|
this.preventSetCurrentData = false;
|
|
@@ -17791,7 +17802,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
17791
17802
|
this.dataUpdater(this.dataSource, query, this.fields);
|
|
17792
17803
|
}
|
|
17793
17804
|
else {
|
|
17794
|
-
this.
|
|
17805
|
+
const hasDataSource = this.dataSource instanceof DataManager ||
|
|
17806
|
+
(Array.isArray(this.dataSource) && this.dataSource.length > 0);
|
|
17807
|
+
this.dataUpdater(hasDataSource ? this.mainData : this.dataSource, query, this.fields);
|
|
17795
17808
|
}
|
|
17796
17809
|
this.UpdateSkeleton();
|
|
17797
17810
|
}
|