@shival99/z-ui 1.7.3 → 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.
- package/fesm2022/shival99-z-ui-components-z-table.mjs +12 -2
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +4 -4
- package/types/shival99-z-ui-components-z-gallery.d.ts +2 -2
- package/types/shival99-z-ui-components-z-modal.d.ts +1 -1
- package/types/shival99-z-ui-components-z-select.d.ts +1 -1
- package/types/shival99-z-ui-components-z-timeline.d.ts +6 -6
- package/types/shival99-z-ui-components-z-upload.d.ts +3 -3
|
@@ -3694,14 +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) {
|
|
3707
|
+
if (wrapperEl && wrapperEl.scrollTop !== 0) {
|
|
3702
3708
|
wrapperEl.scrollTop = 0;
|
|
3709
|
+
this.virtualizer.scrollToOffset(0);
|
|
3703
3710
|
}
|
|
3704
|
-
this.virtualizer.scrollToOffset(0);
|
|
3705
3711
|
}
|
|
3706
3712
|
this._checkVerticalScroll();
|
|
3707
3713
|
this._checkHorizontalScroll();
|
|
@@ -3731,6 +3737,10 @@ class ZTableComponent {
|
|
|
3731
3737
|
wrapperEl.scrollTop = 0;
|
|
3732
3738
|
wrapperEl.scrollLeft = this._savedScrollLeft();
|
|
3733
3739
|
}
|
|
3740
|
+
if (this.isVirtual()) {
|
|
3741
|
+
this.virtualizer.scrollToOffset(0);
|
|
3742
|
+
this.virtualizer.measure();
|
|
3743
|
+
}
|
|
3734
3744
|
this._checkScrollState();
|
|
3735
3745
|
});
|
|
3736
3746
|
});
|