@moontra/moonui-pro 2.26.22 → 2.26.23

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/dist/index.mjs CHANGED
@@ -74135,12 +74135,14 @@ function DataTable({
74135
74135
  autoResetExpanded: false,
74136
74136
  getRowId: (row) => row.id || row.orderId || Math.random().toString()
74137
74137
  });
74138
+ const prevRowSelectionRef = t__default.useRef(rowSelection);
74138
74139
  t__default.useEffect(() => {
74139
- if (onRowSelect && selectable) {
74140
+ if (onRowSelect && selectable && prevRowSelectionRef.current !== rowSelection) {
74141
+ prevRowSelectionRef.current = rowSelection;
74140
74142
  const selectedRows = table.getFilteredSelectedRowModel().rows.map((row) => row.original);
74141
74143
  onRowSelect(selectedRows);
74142
74144
  }
74143
- }, [rowSelection, onRowSelect, selectable, table]);
74145
+ }, [rowSelection, selectable]);
74144
74146
  table.getState();
74145
74147
  const rowModel = table.getRowModel();
74146
74148
  const rowsRef = t__default.useRef(rowModel.rows);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.22",
3
+ "version": "2.26.23",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",