@syncfusion/ej2-dropdowns 21.1.36 → 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.
@@ -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
  }