@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.
@@ -6273,7 +6273,7 @@ let DropDownTree = class DropDownTree extends Component {
6273
6273
  this.changeState(wrap, 'uncheck');
6274
6274
  this.isReverseUpdate = false;
6275
6275
  }
6276
- else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && this.isCheckAllCalled) {
6276
+ else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && (args.isInteracted || this.isCheckAllCalled)) {
6277
6277
  this.isReverseUpdate = true;
6278
6278
  this.isCheckAllCalled = false;
6279
6279
  this.changeState(wrap, 'check');
@@ -14823,7 +14823,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
14823
14823
  }
14824
14824
  this.updateSelectedOptions();
14825
14825
  this.triggerChange(this.getSelectedItems(), e);
14826
- this.checkMaxSelection();
14826
+ if (this.list) {
14827
+ this.checkMaxSelection();
14828
+ }
14827
14829
  }
14828
14830
  }
14829
14831
  triggerChange(selectedLis, event) {
@@ -15477,7 +15479,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
15477
15479
  if (index < 0 || index === cul.childElementCount) {
15478
15480
  return -1;
15479
15481
  }
15480
- cli = cul.querySelectorAll('.e-list-item')[index];
15482
+ cli = cul.childNodes[index];
15481
15483
  if (cli.classList.contains('e-disabled') || cli.classList.contains(cssClass.group)) {
15482
15484
  index = this.getValidIndex(cli, index, keyCode);
15483
15485
  }
@@ -17064,7 +17066,7 @@ let Mention = class Mention extends DropDownBase {
17064
17066
  }
17065
17067
  globalRange = this.range;
17066
17068
  range = document.createRange();
17067
- if (((this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1 && this.isTyped) || this.getTextRange() && this.getTextRange().trim() === '@')) {
17069
+ if (((this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1) || this.getTextRange() && this.getTextRange().trim() === this.mentionChar)) {
17068
17070
  range.setStart(globalRange.startContainer, startPos);
17069
17071
  range.setEnd(globalRange.startContainer, endPos);
17070
17072
  }
@@ -17136,9 +17138,7 @@ let Mention = class Mention extends DropDownBase {
17136
17138
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17137
17139
  const displayCompTemp = compiledString(this.itemData, this, 'displayTemplate', this.displayTemplateId, this.isStringTemplate, null, this.displayTempElement);
17138
17140
  if (displayCompTemp && displayCompTemp.length > 0) {
17139
- for (let i = 0; i < displayCompTemp.length; i++) {
17140
- this.displayTempElement.appendChild(displayCompTemp[i]);
17141
- }
17141
+ append(displayCompTemp, this.displayTempElement);
17142
17142
  }
17143
17143
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17144
17144
  if (!this.isReact) {