@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.mjs
CHANGED
@@ -1152,6 +1152,9 @@ var useDataTable = ({
|
|
1152
1152
|
});
|
1153
1153
|
const { getSelectedRowModel, toggleAllRowsSelected } = table;
|
1154
1154
|
const { flatRows } = getSelectedRowModel();
|
1155
|
+
React5.useEffect(() => {
|
1156
|
+
table.setRowSelection(selectedRow != null ? selectedRow : {});
|
1157
|
+
}, [selectedRow]);
|
1155
1158
|
React5.useEffect(() => {
|
1156
1159
|
const rowData = flatRows.map((row) => row.original);
|
1157
1160
|
if (onSelectedRow) {
|