@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
|
@@ -461,7 +461,9 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
461
461
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
|
|
462
462
|
}
|
|
463
463
|
this.parent.updateVirtualReOrderList(true);
|
|
464
|
-
|
|
464
|
+
var totalCount = this.parent.dataSource instanceof DataManager
|
|
465
|
+
? this.parent.totalItemCount : this.parent.dataSource.length;
|
|
466
|
+
if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== totalCount) {
|
|
465
467
|
var oldUlElement_1 = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
|
|
466
468
|
if (oldUlElement_1) {
|
|
467
469
|
this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement_1);
|
|
@@ -15774,8 +15776,16 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15774
15776
|
}
|
|
15775
15777
|
};
|
|
15776
15778
|
MultiSelect.prototype.updateAriaActiveDescendant = function () {
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
+
var activeItem = !isNullOrUndefined(this.ulElement)
|
|
15780
|
+
? this.ulElement.getElementsByClassName('e-item-focus')[0]
|
|
15781
|
+
: null;
|
|
15782
|
+
if (!isNullOrUndefined(activeItem) && this.isPopupOpen()) {
|
|
15783
|
+
attributes(this.inputElement, {
|
|
15784
|
+
'aria-activedescendant': activeItem.id
|
|
15785
|
+
});
|
|
15786
|
+
}
|
|
15787
|
+
else if (!isNullOrUndefined(this.inputElement)) {
|
|
15788
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
15779
15789
|
}
|
|
15780
15790
|
};
|
|
15781
15791
|
MultiSelect.prototype.pageUpSelection = function (steps, isVirtualKeyAction) {
|
|
@@ -18040,6 +18050,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18040
18050
|
}
|
|
18041
18051
|
});
|
|
18042
18052
|
this.updatePopupHeightOnFilter();
|
|
18053
|
+
this.updateAriaActiveDescendant();
|
|
18043
18054
|
};
|
|
18044
18055
|
MultiSelect.prototype.search = function (e) {
|
|
18045
18056
|
this.preventSetCurrentData = false;
|
|
@@ -18076,7 +18087,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18076
18087
|
this.dataUpdater(this.dataSource, query, this.fields);
|
|
18077
18088
|
}
|
|
18078
18089
|
else {
|
|
18079
|
-
this.
|
|
18090
|
+
var hasDataSource = this.dataSource instanceof DataManager ||
|
|
18091
|
+
(Array.isArray(this.dataSource) && this.dataSource.length > 0);
|
|
18092
|
+
this.dataUpdater(hasDataSource ? this.mainData : this.dataSource, query, this.fields);
|
|
18080
18093
|
}
|
|
18081
18094
|
this.UpdateSkeleton();
|
|
18082
18095
|
}
|