@ctlyst.id/internal-ui 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1500,6 +1500,9 @@ var useDataTable = ({
1500
1500
  });
1501
1501
  const { getSelectedRowModel, toggleAllRowsSelected } = table;
1502
1502
  const { flatRows } = getSelectedRowModel();
1503
+ React5.useEffect(() => {
1504
+ table.setRowSelection(selectedRow != null ? selectedRow : {});
1505
+ }, [selectedRow]);
1503
1506
  React5.useEffect(() => {
1504
1507
  const rowData = flatRows.map((row) => row.original);
1505
1508
  if (onSelectedRow) {