@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.
@@ -473,6 +473,10 @@ class VirtualScroll {
473
473
  this.parent.totalItemsCount();
474
474
  }
475
475
  if (isListUpdated) {
476
+ if (this.component === 'multiselect' && this.parent.itemCount * 2 > this.parent.totalItemCount) {
477
+ this.parent.viewPortInfo.endIndex = endIndex = this.parent.totalItemCount;
478
+ this.parent.isVirtualTrackHeight = true;
479
+ }
476
480
  for (let i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
477
481
  const index = i;
478
482
  if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
@@ -1651,8 +1655,10 @@ let DropDownBase = class DropDownBase extends Component {
1651
1655
  for (let queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
1652
1656
  if (this.getModuleName() === 'multiselect' && this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
1653
1657
  newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !this.isCustomFiltering)) {
1654
- isReOrder = false;
1655
- break;
1658
+ if (this.totalItemCount > (this.itemCount * 2)) {
1659
+ isReOrder = false;
1660
+ break;
1661
+ }
1656
1662
  }
1657
1663
  if (newQuery.queries[queryElements].fn === 'onTake') {
1658
1664
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -18833,7 +18839,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18833
18839
  if (this.hideSelectedItem && this.value && Array.isArray(this.value) && this.value.length > 0) {
18834
18840
  this.totalItemsCount();
18835
18841
  }
18836
- if (!this.preventSetCurrentData && this.totalItemCount > (this.itemCount * 2) &&
18842
+ if (!this.preventSetCurrentData &&
18837
18843
  !isNullOrUndefined(this.viewPortInfo.startIndex) &&
18838
18844
  !isNullOrUndefined(this.viewPortInfo.endIndex)) {
18839
18845
  this.notify('setCurrentViewDataAsync', {
@@ -23434,11 +23440,11 @@ let Mention = class Mention extends DropDownBase {
23434
23440
  this.searchLists(e);
23435
23441
  if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
23436
23442
  if (!this.isContentEditable(this.inputElement)) {
23437
- this.showPopup();
23443
+ this.showPopupWithDebounce();
23438
23444
  }
23439
23445
  else if (this.isContentEditable(this.inputElement) && this.range &&
23440
23446
  this.range.startContainer !== this.inputElement && e.keyCode !== 9) {
23441
- this.showPopup();
23447
+ this.showPopupWithDebounce();
23442
23448
  }
23443
23449
  }
23444
23450
  }
@@ -23476,6 +23482,14 @@ let Mention = class Mention extends DropDownBase {
23476
23482
  }
23477
23483
  this.isListResetted = false;
23478
23484
  }
23485
+ showPopupWithDebounce() {
23486
+ if (this.minLength > 0 && this.minLength === this.queryString.length) {
23487
+ setTimeout(() => { this.showPopup(); }, this.debounceDelay);
23488
+ }
23489
+ else {
23490
+ this.showPopup();
23491
+ }
23492
+ }
23479
23493
  isMatchedText() {
23480
23494
  let isMatched = false;
23481
23495
  for (let i = 0; i < (this.liCollections && this.liCollections.length); i++) {