@syncfusion/ej2-dropdowns 26.1.38 → 26.1.39

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.
@@ -7354,7 +7354,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
7354
7354
  var checkValue;
7355
7355
  var isObjectValue = isChild && isChildFiltering && this.isChildObject();
7356
7356
  checkValue = isObjectValue ? node[this.fields.child.text] : node[this.fields.text];
7357
- if (!checkValue) {
7357
+ if (!checkValue && !isNullOrUndefined(this.fields.child.text)) {
7358
7358
  var tempChild = this.fields.child;
7359
7359
  while (!node[tempChild.text]) {
7360
7360
  tempChild = tempChild.child;
@@ -8817,7 +8817,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8817
8817
  this.ensurePlaceHolder();
8818
8818
  }
8819
8819
  if (this.showSelectAll && this.checkBoxElement) {
8820
- var nodes = this.treeObj.element.querySelectorAll('li');
8821
8820
  var checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
8822
8821
  var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
8823
8822
  if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) {
@@ -8825,7 +8824,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8825
8824
  this.changeState(wrap, 'uncheck');
8826
8825
  this.isReverseUpdate = false;
8827
8826
  }
8828
- else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && (args.isInteracted || this.isCheckAllCalled || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'true'))) {
8827
+ else if (wrap && args.action === 'check'
8828
+ && checkedNodes.length === this.fields.dataSource.length
8829
+ && (args.isInteracted || this.isCheckAllCalled || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'true'))) {
8829
8830
  this.isReverseUpdate = true;
8830
8831
  this.isCheckAllCalled = false;
8831
8832
  this.changeState(wrap, 'check');
@@ -19409,6 +19410,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19409
19410
  if (this.height.toString().indexOf('%') < 0) {
19410
19411
  addClass([this.list], 'e-filter-list');
19411
19412
  }
19413
+ else if (this.height.toString().indexOf('%') > 0) {
19414
+ this.ulElement.style.height = (this.ulElement.offsetHeight - this.filterParent.offsetHeight) + 'px';
19415
+ }
19412
19416
  this.inputString = this.filterInput.value;
19413
19417
  this.filterWireEvents();
19414
19418
  return filterInputObj;
@@ -19993,7 +19997,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19993
19997
  else {
19994
19998
  elems = [args.target];
19995
19999
  }
19996
- return { elements: elems, items: this.getDataByElems(elems) };
20000
+ return { elements: elems, event: args.event, items: this.getDataByElems(elems) };
19997
20001
  };
19998
20002
  ListBox.prototype.onKeyDown = function (e) {
19999
20003
  this.keyDownHandler(e);
@@ -20968,7 +20972,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
20968
20972
  var isNavigation = (e.action === 'down' || e.action === 'up' || e.action === 'pageUp' || e.action === 'pageDown'
20969
20973
  || e.action === 'home' || e.action === 'end');
20970
20974
  var isTabAction = e.action === 'tab' || e.action === 'close';
20971
- if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape' && e.action !== 'space') {
20975
+ if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape' && e.action !== 'space' && this.mentionChar.charCodeAt(0) === this.getLastLetter(this.getTextRange()).charCodeAt(0)) {
20972
20976
  this.renderList();
20973
20977
  }
20974
20978
  if (isNullOrUndefined(this.list) || (!isNullOrUndefined(this.liCollections) &&