@ctlyst.id/internal-ui 5.0.2 → 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 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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) {
|