@syncfusion/ej2-dropdowns 21.1.36 → 21.1.38

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.
@@ -6380,7 +6380,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6380
6380
  this.changeState(wrap, 'uncheck');
6381
6381
  this.isReverseUpdate = false;
6382
6382
  }
6383
- else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && this.isCheckAllCalled) {
6383
+ else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && (args.isInteracted || this.isCheckAllCalled)) {
6384
6384
  this.isReverseUpdate = true;
6385
6385
  this.isCheckAllCalled = false;
6386
6386
  this.changeState(wrap, 'check');
@@ -15053,7 +15053,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15053
15053
  }
15054
15054
  this.updateSelectedOptions();
15055
15055
  this.triggerChange(this.getSelectedItems(), e);
15056
- this.checkMaxSelection();
15056
+ if (this.list) {
15057
+ this.checkMaxSelection();
15058
+ }
15057
15059
  }
15058
15060
  };
15059
15061
  ListBox.prototype.triggerChange = function (selectedLis, event) {
@@ -15712,7 +15714,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15712
15714
  if (index < 0 || index === cul.childElementCount) {
15713
15715
  return -1;
15714
15716
  }
15715
- cli = cul.querySelectorAll('.e-list-item')[index];
15717
+ cli = cul.childNodes[index];
15716
15718
  if (cli.classList.contains('e-disabled') || cli.classList.contains(cssClass.group)) {
15717
15719
  index = this.getValidIndex(cli, index, keyCode);
15718
15720
  }
@@ -17331,7 +17333,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
17331
17333
  }
17332
17334
  globalRange = this.range;
17333
17335
  range = document.createRange();
17334
- if (((this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1 && this.isTyped) || this.getTextRange() && this.getTextRange().trim() === '@')) {
17336
+ if (((this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1) || this.getTextRange() && this.getTextRange().trim() === this.mentionChar)) {
17335
17337
  range.setStart(globalRange.startContainer, startPos);
17336
17338
  range.setEnd(globalRange.startContainer, endPos);
17337
17339
  }
@@ -17404,9 +17406,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
17404
17406
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17405
17407
  var displayCompTemp = compiledString(this.itemData, this, 'displayTemplate', this.displayTemplateId, this.isStringTemplate, null, this.displayTempElement);
17406
17408
  if (displayCompTemp && displayCompTemp.length > 0) {
17407
- for (var i = 0; i < displayCompTemp.length; i++) {
17408
- this.displayTempElement.appendChild(displayCompTemp[i]);
17409
- }
17409
+ append(displayCompTemp, this.displayTempElement);
17410
17410
  }
17411
17411
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17412
17412
  if (!this.isReact) {