@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 +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) {
|