@tanstack/table-core 8.15.2 → 8.15.3

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.15.2",
3
+ "version": "8.15.3",
4
4
  "description": "Headless UI for building powerful tables & datagrids for TS/JS.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -283,11 +283,9 @@ export const ColumnGrouping: TableFeature = {
283
283
 
284
284
  column.getCanGroup = () => {
285
285
  return (
286
- column.columnDef.enableGrouping ??
287
- true ??
288
- table.options.enableGrouping ??
289
- true ??
290
- !!column.accessorFn
286
+ (column.columnDef.enableGrouping ?? true) &&
287
+ (table.options.enableGrouping ?? true) &&
288
+ (!!column.accessorFn || !!column.columnDef.getGroupingValue)
291
289
  )
292
290
  }
293
291