@syncfusion/ej2-dropdowns 28.2.4 → 28.2.5
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 +15 -7
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +15 -7
- 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 +7 -7
- package/src/drop-down-list/drop-down-list.js +3 -1
- package/src/drop-down-tree/drop-down-tree.js +12 -6
|
@@ -5420,6 +5420,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5420
5420
|
}
|
|
5421
5421
|
var args = { cancel: false };
|
|
5422
5422
|
this.trigger('beforeOpen', args, function (args) {
|
|
5423
|
+
var initialPopupHeight;
|
|
5423
5424
|
if (!args.cancel) {
|
|
5424
5425
|
var popupEle = _this.createElement('div', {
|
|
5425
5426
|
id: _this.element.id + '_popup', className: 'e-ddl e-popup ' + (_this.cssClass !== null ? _this.cssClass : '')
|
|
@@ -5440,6 +5441,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5440
5441
|
}
|
|
5441
5442
|
document.body.appendChild(popupEle);
|
|
5442
5443
|
popupEle.style.top = '0px';
|
|
5444
|
+
initialPopupHeight = popupEle.clientHeight;
|
|
5443
5445
|
if (_this.enableVirtualization && _this.itemTemplate) {
|
|
5444
5446
|
var listitems = popupEle.querySelectorAll('li.e-list-item:not(.e-virtual-list)');
|
|
5445
5447
|
_this.listItemHeight = listitems.length > 0 ? Math.ceil(listitems[0].getBoundingClientRect().height) +
|
|
@@ -5637,7 +5639,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5637
5639
|
// Add the resizer div to the popup
|
|
5638
5640
|
if (_this.list && _this.list.parentElement) {
|
|
5639
5641
|
_this.list.parentElement.classList.add('e-resize');
|
|
5640
|
-
if (_this.popupHeight.toString().toLowerCase() !== 'auto') {
|
|
5642
|
+
if (_this.popupHeight.toString().toLowerCase() !== 'auto' && initialPopupHeight > parseInt(_this.popupHeight.toString(), 10)) {
|
|
5641
5643
|
_this.list.parentElement.style.height = '100%';
|
|
5642
5644
|
}
|
|
5643
5645
|
_this.list.parentElement.style.paddingBottom = (_this.getModuleName() === 'dropdownlist' && _this.allowFiltering && _this.searchBoxHeight) ? (_this.searchBoxHeight + resizePaddingBottom).toString() + 'px' : resizePaddingBottom.toString() + 'px';
|
|
@@ -8673,7 +8675,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8673
8675
|
this.inputEle.setAttribute('aria-label', this.getModuleName());
|
|
8674
8676
|
var id = this.element.getAttribute('id');
|
|
8675
8677
|
this.hiddenElement.id = id + '_hidden';
|
|
8676
|
-
this.inputWrapper.setAttribute('tabindex', '0');
|
|
8678
|
+
this.inputWrapper.setAttribute('tabindex', this.inputWrapper.classList.contains('e-disabled') ? '-1' : '0');
|
|
8677
8679
|
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
8678
8680
|
attributes(this.inputWrapper, this.getAriaAttributes());
|
|
8679
8681
|
};
|
|
@@ -9041,9 +9043,11 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9041
9043
|
removeClass([_this.popupEle], DDTHIDEICON);
|
|
9042
9044
|
_this.updatePopupHeight();
|
|
9043
9045
|
_this.popupObj.refreshPosition();
|
|
9044
|
-
if (
|
|
9045
|
-
|
|
9046
|
-
|
|
9046
|
+
if (_this.showSelectAll && !_this.allowFiltering) {
|
|
9047
|
+
_this.checkAllParent.focus();
|
|
9048
|
+
}
|
|
9049
|
+
if ((!_this.popupDiv.classList.contains(NODATA) && _this.treeItems.length > 0)) {
|
|
9050
|
+
var focusedElement = _this.value != null || _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
|
|
9047
9051
|
if (focusedElement) {
|
|
9048
9052
|
_this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
|
|
9049
9053
|
focusedElement.setAttribute('tabindex', '0');
|
|
@@ -9383,7 +9387,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9383
9387
|
this.updateTemplate();
|
|
9384
9388
|
}
|
|
9385
9389
|
this.treeObj.fields = this.getTreeFields(this.fields);
|
|
9390
|
+
this.setProperties({ value: this.oldValue }, true);
|
|
9386
9391
|
this.treeObj.dataBind();
|
|
9392
|
+
this.updateValue(this.value);
|
|
9387
9393
|
};
|
|
9388
9394
|
DropDownTree.prototype.getEventArgs = function (args) {
|
|
9389
9395
|
var checkData = args.data;
|
|
@@ -10400,8 +10406,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
10400
10406
|
this.updateFilterPlaceHolder();
|
|
10401
10407
|
break;
|
|
10402
10408
|
case 'value':
|
|
10403
|
-
|
|
10404
|
-
|
|
10409
|
+
if (JSON.stringify(oldProp.value) !== JSON.stringify(newProp.value)) {
|
|
10410
|
+
this.oldValue = oldProp.value;
|
|
10411
|
+
this.updateValue(newProp.value);
|
|
10412
|
+
}
|
|
10405
10413
|
break;
|
|
10406
10414
|
case 'text':
|
|
10407
10415
|
this.updateText(newProp.text);
|