@tanstack/table-core 8.13.0 → 8.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/table-core",
3
- "version": "8.13.0",
3
+ "version": "8.13.1",
4
4
  "description": "Headless UI for building powerful tables & datagrids for TS/JS.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -178,7 +178,12 @@ export const Visibility: TableFeature = {
178
178
  }
179
179
  }
180
180
  column.getIsVisible = () => {
181
- return table.getState().columnVisibility?.[column.id] ?? true
181
+ const childColumns = column.columns
182
+ return (
183
+ (childColumns.length
184
+ ? childColumns.some(c => c.getIsVisible())
185
+ : table.getState().columnVisibility?.[column.id]) ?? true
186
+ )
182
187
  }
183
188
 
184
189
  column.getCanHide = () => {