@shival99/z-ui 1.7.4 → 1.7.5
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.
|
@@ -3694,16 +3694,20 @@ class ZTableComponent {
|
|
|
3694
3694
|
explicitEffect([this.columnFilters, this.globalFilter, this.pagination, this.sorting, this._data], () => {
|
|
3695
3695
|
if (this.isVirtual()) {
|
|
3696
3696
|
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();
|
|
3697
3703
|
}
|
|
3698
3704
|
queueMicrotask(() => {
|
|
3699
3705
|
if (this.isVirtual()) {
|
|
3700
3706
|
const wrapperEl = this.tbodyWrapper()?.nativeElement;
|
|
3701
|
-
if (wrapperEl) {
|
|
3702
|
-
wrapperEl.dispatchEvent(new Event('resize'));
|
|
3707
|
+
if (wrapperEl && wrapperEl.scrollTop !== 0) {
|
|
3703
3708
|
wrapperEl.scrollTop = 0;
|
|
3709
|
+
this.virtualizer.scrollToOffset(0);
|
|
3704
3710
|
}
|
|
3705
|
-
this.virtualizer.scrollToOffset(0);
|
|
3706
|
-
this.virtualizer.measure();
|
|
3707
3711
|
}
|
|
3708
3712
|
this._checkVerticalScroll();
|
|
3709
3713
|
this._checkHorizontalScroll();
|