@shival99/z-ui 1.7.5 → 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,21 +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
|
-
const wrapperEl = this.tbodyWrapper()?.nativeElement;
|
|
3698
|
-
if (wrapperEl) {
|
|
3699
|
-
wrapperEl.scrollTop = 0;
|
|
3700
|
-
}
|
|
3701
|
-
this.virtualizer.scrollToOffset(0);
|
|
3702
|
-
this.virtualizer.measure();
|
|
3703
3698
|
}
|
|
3704
3699
|
queueMicrotask(() => {
|
|
3705
3700
|
if (this.isVirtual()) {
|
|
3706
3701
|
const wrapperEl = this.tbodyWrapper()?.nativeElement;
|
|
3707
|
-
if (wrapperEl
|
|
3702
|
+
if (wrapperEl) {
|
|
3708
3703
|
wrapperEl.scrollTop = 0;
|
|
3709
|
-
this.virtualizer.scrollToOffset(0);
|
|
3710
3704
|
}
|
|
3705
|
+
this.virtualizer.scrollToOffset(0);
|
|
3711
3706
|
}
|
|
3712
3707
|
this._checkVerticalScroll();
|
|
3713
3708
|
this._checkHorizontalScroll();
|
|
@@ -3737,10 +3732,6 @@ class ZTableComponent {
|
|
|
3737
3732
|
wrapperEl.scrollTop = 0;
|
|
3738
3733
|
wrapperEl.scrollLeft = this._savedScrollLeft();
|
|
3739
3734
|
}
|
|
3740
|
-
if (this.isVirtual()) {
|
|
3741
|
-
this.virtualizer.scrollToOffset(0);
|
|
3742
|
-
this.virtualizer.measure();
|
|
3743
|
-
}
|
|
3744
3735
|
this._checkScrollState();
|
|
3745
3736
|
});
|
|
3746
3737
|
});
|