@syncfusion/ej2-dropdowns 28.1.41 → 28.2.3

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.
@@ -449,7 +449,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
449
449
  endIndex = this.parent.viewPortInfo.endIndex - this.parent.value.length;
450
450
  if (this.parent.viewPortInfo.startIndex === 0) {
451
451
  this.parent.updateVirtualReOrderList(true);
452
- if (this.parent.value.length < this.parent.itemCount) {
452
+ if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== this.parent.totalItemCount) {
453
453
  var oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
454
454
  if (oldUlElement) {
455
455
  this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
@@ -512,6 +512,12 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
512
512
  if (isListUpdated) {
513
513
  for (var i = this.parent.viewPortInfo.startIndex; i < endIndex; i++) {
514
514
  var index = i;
515
+ if (this.component === 'multiselect' && this.parent.mode === 'CheckBox') {
516
+ var oldUlElement = this.parent.list.querySelector('.e-list-parent' + '.e-reorder');
517
+ if (oldUlElement) {
518
+ this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
519
+ }
520
+ }
515
521
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
516
522
  var alreadyAddedData = this.parent.generatedDataObject[index];
517
523
  if (this.component === 'multiselect' && this.parent.hideSelectedItem) {
@@ -12759,6 +12765,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12759
12765
  _this.isUpdateFooterHeight = false;
12760
12766
  _this.isBlurDispatching = false;
12761
12767
  _this.isFilterPrevented = false;
12768
+ _this.isFilteringAction = false;
12762
12769
  _this.isValidKey = false;
12763
12770
  _this.selectAllEventData = [];
12764
12771
  _this.selectAllEventEle = [];
@@ -13220,7 +13227,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13220
13227
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13221
13228
  this.totalItemCount = e.count;
13222
13229
  }
13223
- if (this.value && list && list.length > 0 && this.allowFiltering && this.mode !== 'CheckBox' && !this.enableVirtualization && !this.isFilterPrevented && !this.allowCustomValue) {
13230
+ if (this.value && list && list.length > 0 && this.allowFiltering && this.mode !== 'CheckBox' && !this.enableVirtualization && !this.isFilterPrevented && !this.allowCustomValue && this.isFilteringAction) {
13224
13231
  var allItemsInValue = list.every(function (item) {
13225
13232
  var itemValue = getValue((_this.fields.value) ? _this.fields.value : '', item);
13226
13233
  return _this.value.some(function (val) {
@@ -15889,6 +15896,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15889
15896
  this.totalItemCount = this.value && this.value.length ? this.totalItemCount - this.value.length : this.totalItemCount;
15890
15897
  }
15891
15898
  this.getSkeletonCount();
15899
+ this.skeletonCount = this.totalItemCount !== 0 && this.totalItemCount < this.itemCount * 2 &&
15900
+ ((!(this.dataSource instanceof DataManager)) || ((this.dataSource instanceof DataManager) &&
15901
+ (this.totalItemCount <= this.itemCount))) ? 0 : this.skeletonCount;
15892
15902
  this.UpdateSkeleton();
15893
15903
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
15894
15904
  if (this.list.getElementsByClassName('e-virtual-ddl')[0]) {
@@ -16119,10 +16129,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16119
16129
  if (!eventArgs.cancel) {
16120
16130
  if (!_this.isFiltered && !eventArgs.preventDefaultAction) {
16121
16131
  _this.filterAction = true;
16132
+ _this.isFilteringAction = true;
16122
16133
  if (_this.dataSource instanceof DataManager && _this.allowCustomValue) {
16123
16134
  _this.isCustomRendered = false;
16124
16135
  }
16125
16136
  _this.dataUpdater(_this.dataSource, null, _this.fields);
16137
+ _this.isFilteringAction = false;
16126
16138
  }
16127
16139
  }
16128
16140
  });