@syncfusion/ej2-dropdowns 35.1.42 → 35.1.43

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.
@@ -413,7 +413,9 @@ class VirtualScroll {
413
413
  this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);
414
414
  }
415
415
  this.parent.updateVirtualReOrderList(true);
416
- if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== this.parent.totalItemCount) {
416
+ const totalCount = this.parent.dataSource instanceof DataManager
417
+ ? this.parent.totalItemCount : this.parent.dataSource.length;
418
+ if (this.parent.value.length < this.parent.itemCount && this.parent.value.length !== totalCount) {
417
419
  const oldUlElement = this.parent.list.querySelector('.e-list-parent' + ':not(.e-reorder)');
418
420
  if (oldUlElement) {
419
421
  this.parent.list.querySelector('.e-virtual-ddl-content').removeChild(oldUlElement);