@syncfusion/ej2-dropdowns 32.1.20 → 32.1.21

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.
@@ -521,6 +521,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
521
521
  this.parent.totalItemsCount();
522
522
  }
523
523
  if (isListUpdated) {
524
+ if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount) {
525
+ this.parent.viewPortInfo.endIndex = endIndex = this.parent.totalItemCount;
526
+ this.parent.isVirtualTrackHeight = true;
527
+ }
524
528
  for (var i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
525
529
  var index = i;
526
530
  if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
@@ -1735,8 +1739,10 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1735
1739
  for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
1736
1740
  if (_this.getModuleName() === 'multiselect' && _this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
1737
1741
  newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !_this.isCustomFiltering)) {
1738
- isReOrder = false;
1739
- break;
1742
+ if (_this.totalItemCount > (_this.itemCount * 2)) {
1743
+ isReOrder = false;
1744
+ break;
1745
+ }
1740
1746
  }
1741
1747
  if (newQuery.queries[queryElements].fn === 'onTake') {
1742
1748
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -19128,7 +19134,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
19128
19134
  if (_this.hideSelectedItem && _this.value && Array.isArray(_this.value) && _this.value.length > 0) {
19129
19135
  _this.totalItemsCount();
19130
19136
  }
19131
- if (!_this.preventSetCurrentData && _this.totalItemCount > (_this.itemCount * 2) &&
19137
+ if (!_this.preventSetCurrentData &&
19132
19138
  !isNullOrUndefined(_this.viewPortInfo.startIndex) &&
19133
19139
  !isNullOrUndefined(_this.viewPortInfo.endIndex)) {
19134
19140
  _this.notify('setCurrentViewDataAsync', {
@@ -23820,11 +23826,11 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23820
23826
  this.searchLists(e);
23821
23827
  if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
23822
23828
  if (!this.isContentEditable(this.inputElement)) {
23823
- this.showPopup();
23829
+ this.showPopupWithDebounce();
23824
23830
  }
23825
23831
  else if (this.isContentEditable(this.inputElement) && this.range &&
23826
23832
  this.range.startContainer !== this.inputElement && e.keyCode !== 9) {
23827
- this.showPopup();
23833
+ this.showPopupWithDebounce();
23828
23834
  }
23829
23835
  }
23830
23836
  }
@@ -23862,6 +23868,15 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23862
23868
  }
23863
23869
  this.isListResetted = false;
23864
23870
  };
23871
+ Mention.prototype.showPopupWithDebounce = function () {
23872
+ var _this = this;
23873
+ if (this.minLength > 0 && this.minLength === this.queryString.length) {
23874
+ setTimeout(function () { _this.showPopup(); }, this.debounceDelay);
23875
+ }
23876
+ else {
23877
+ this.showPopup();
23878
+ }
23879
+ };
23865
23880
  Mention.prototype.isMatchedText = function () {
23866
23881
  var isMatched = false;
23867
23882
  for (var i = 0; i < (this.liCollections && this.liCollections.length); i++) {