@masterteam/components 0.0.283 → 0.0.285
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/masterteam-components-business-fields.mjs +10 -2
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +10 -0
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +6 -0
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +12 -1
- package/types/masterteam-components.d.ts +6 -0
|
@@ -2151,6 +2151,16 @@ class Table {
|
|
|
2151
2151
|
if (!this.virtualScroll()) {
|
|
2152
2152
|
return false;
|
|
2153
2153
|
}
|
|
2154
|
+
// Never virtualize a grouped table. PrimeNG emits its group subheaders
|
|
2155
|
+
// while walking the rendered rows, so a virtual scroller — which renders
|
|
2156
|
+
// only the window around the viewport — drops and re-emits headers as the
|
|
2157
|
+
// user scrolls: a group's header vanishes above the fold and the same
|
|
2158
|
+
// value sprouts a fresh header further down. A grouped table is bounded by
|
|
2159
|
+
// design (grouping buckets the rows it holds, so it is never the
|
|
2160
|
+
// backend-paged case), which is what makes rendering all of them safe.
|
|
2161
|
+
if (this.grouping.groupingActive()) {
|
|
2162
|
+
return false;
|
|
2163
|
+
}
|
|
2154
2164
|
const rowCount = this.displayData().length;
|
|
2155
2165
|
if (rowCount === 0) {
|
|
2156
2166
|
return false;
|