@visns-studio/visns-components 5.9.11 → 5.9.12

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
@@ -87,7 +87,7 @@
87
87
  "react-dom": "^17.0.0 || ^18.0.0"
88
88
  },
89
89
  "name": "@visns-studio/visns-components",
90
- "version": "5.9.11",
90
+ "version": "5.9.12",
91
91
  "description": "Various packages to assist in the development of our Custom Applications.",
92
92
  "main": "src/index.js",
93
93
  "files": [
@@ -1672,6 +1672,21 @@ const DataGrid = forwardRef(
1672
1672
  const { onClick } = rowProps;
1673
1673
 
1674
1674
  rowProps.onClick = (event) => {
1675
+ // Check if this is a group row - group rows should only handle expand/collapse, not onRowClick
1676
+ const isGroupRow = rowProps.isGroupRow ||
1677
+ rowProps.data?.__group ||
1678
+ event.target.closest('.InovuaReactDataGrid__group-row') ||
1679
+ event.target.closest('.InovuaReactDataGrid__group-cell');
1680
+
1681
+ if (isGroupRow) {
1682
+ // For group rows, only allow the original onClick handler (for expand/collapse)
1683
+ // Do NOT call onRowClick as it should only apply to data rows
1684
+ if (onClick) {
1685
+ onClick(event);
1686
+ }
1687
+ return;
1688
+ }
1689
+
1675
1690
  const cellElement = event.target.closest(
1676
1691
  '.InovuaReactDataGrid__cell'
1677
1692
  );