@syncfusion/ej2-dropdowns 21.1.35 → 21.1.37

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.
@@ -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
  }