@ctlyst.id/internal-ui 5.0.1 → 5.0.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/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1501,7 +1501,9 @@ var useDataTable = ({
|
|
1501
1501
|
const { getSelectedRowModel, toggleAllRowsSelected } = table;
|
1502
1502
|
const { flatRows } = getSelectedRowModel();
|
1503
1503
|
React5.useEffect(() => {
|
1504
|
-
|
1504
|
+
table.setRowSelection(selectedRow != null ? selectedRow : {});
|
1505
|
+
}, [selectedRow]);
|
1506
|
+
React5.useEffect(() => {
|
1505
1507
|
const rowData = flatRows.map((row) => row.original);
|
1506
1508
|
if (onSelectedRow) {
|
1507
1509
|
onSelectedRow(rowData);
|