@shival99/z-ui 1.7.4 → 1.7.6

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.
@@ -3693,17 +3693,16 @@ class ZTableComponent {
3693
3693
  });
3694
3694
  explicitEffect([this.columnFilters, this.globalFilter, this.pagination, this.sorting, this._data], () => {
3695
3695
  if (this.isVirtual()) {
3696
+ void this.tbodyScrollbar()?.scrollTo?.({ top: 0 });
3696
3697
  this._dynamicGroupsVersion.update(v => v + 1);
3697
3698
  }
3698
3699
  queueMicrotask(() => {
3699
3700
  if (this.isVirtual()) {
3700
3701
  const wrapperEl = this.tbodyWrapper()?.nativeElement;
3701
3702
  if (wrapperEl) {
3702
- wrapperEl.dispatchEvent(new Event('resize'));
3703
3703
  wrapperEl.scrollTop = 0;
3704
3704
  }
3705
3705
  this.virtualizer.scrollToOffset(0);
3706
- this.virtualizer.measure();
3707
3706
  }
3708
3707
  this._checkVerticalScroll();
3709
3708
  this._checkHorizontalScroll();
@@ -3733,10 +3732,6 @@ class ZTableComponent {
3733
3732
  wrapperEl.scrollTop = 0;
3734
3733
  wrapperEl.scrollLeft = this._savedScrollLeft();
3735
3734
  }
3736
- if (this.isVirtual()) {
3737
- this.virtualizer.scrollToOffset(0);
3738
- this.virtualizer.measure();
3739
- }
3740
3735
  this._checkScrollState();
3741
3736
  });
3742
3737
  });