@shival99/z-ui 1.7.8 → 1.7.10
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-autocomplete.mjs +3 -1
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +15 -5
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +7 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +8 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +1 -0
- package/types/shival99-z-ui-components-z-select.d.ts +1 -0
- package/types/shival99-z-ui-components-z-table.d.ts +1 -1
|
@@ -3693,15 +3693,22 @@ class ZTableComponent {
|
|
|
3693
3693
|
});
|
|
3694
3694
|
explicitEffect([this.columnFilters, this.globalFilter, this.pagination, this.sorting, this._data], () => {
|
|
3695
3695
|
if (this.isVirtual()) {
|
|
3696
|
-
this.
|
|
3696
|
+
const wrapperEl = this.tbodyWrapper()?.nativeElement;
|
|
3697
|
+
if (wrapperEl) {
|
|
3698
|
+
wrapperEl.scrollTop = 0;
|
|
3699
|
+
}
|
|
3697
3700
|
const scrollbar = this.tbodyScrollbar();
|
|
3698
3701
|
if (scrollbar) {
|
|
3699
3702
|
void scrollbar.scrollTo({ top: 0, duration: 0 });
|
|
3700
3703
|
}
|
|
3704
|
+
this.virtualizer.scrollToOffset(0);
|
|
3701
3705
|
}
|
|
3702
3706
|
queueMicrotask(() => {
|
|
3703
3707
|
this._checkVerticalScroll();
|
|
3704
3708
|
this._checkHorizontalScroll();
|
|
3709
|
+
if (this.isVirtual()) {
|
|
3710
|
+
this._dynamicGroupsVersion.update(v => v + 1);
|
|
3711
|
+
}
|
|
3705
3712
|
});
|
|
3706
3713
|
});
|
|
3707
3714
|
explicitEffect([this.virtualizer.getVirtualItems], () => {
|