@ceed/cds 1.8.1 → 1.8.2
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.cjs +3 -1
- package/dist/index.js +3 -1
- package/framer/index.js +34 -34
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3530,6 +3530,8 @@ function useDataTableRenderer({
|
|
|
3530
3530
|
isTotalSelected: _isTotalSelected,
|
|
3531
3531
|
isRowSelectable
|
|
3532
3532
|
}) {
|
|
3533
|
+
const onSelectionModelChangeRef = (0, import_react25.useRef)(onSelectionModelChange);
|
|
3534
|
+
onSelectionModelChangeRef.current = onSelectionModelChange;
|
|
3533
3535
|
const [focusedRowId, setFocusedRowId] = (0, import_react25.useState)(null);
|
|
3534
3536
|
const [sortModel, setSortModel] = useControlledState(
|
|
3535
3537
|
controlledSortModel,
|
|
@@ -3719,7 +3721,7 @@ function useDataTableRenderer({
|
|
|
3719
3721
|
}
|
|
3720
3722
|
}, [page, rowCount, pageSize, handlePageChange]);
|
|
3721
3723
|
(0, import_react25.useEffect)(() => {
|
|
3722
|
-
|
|
3724
|
+
onSelectionModelChangeRef.current?.([]);
|
|
3723
3725
|
}, [page]);
|
|
3724
3726
|
return {
|
|
3725
3727
|
rowCount,
|
package/dist/index.js
CHANGED
|
@@ -3498,6 +3498,8 @@ function useDataTableRenderer({
|
|
|
3498
3498
|
isTotalSelected: _isTotalSelected,
|
|
3499
3499
|
isRowSelectable
|
|
3500
3500
|
}) {
|
|
3501
|
+
const onSelectionModelChangeRef = useRef4(onSelectionModelChange);
|
|
3502
|
+
onSelectionModelChangeRef.current = onSelectionModelChange;
|
|
3501
3503
|
const [focusedRowId, setFocusedRowId] = useState6(null);
|
|
3502
3504
|
const [sortModel, setSortModel] = useControlledState(
|
|
3503
3505
|
controlledSortModel,
|
|
@@ -3687,7 +3689,7 @@ function useDataTableRenderer({
|
|
|
3687
3689
|
}
|
|
3688
3690
|
}, [page, rowCount, pageSize, handlePageChange]);
|
|
3689
3691
|
useEffect5(() => {
|
|
3690
|
-
|
|
3692
|
+
onSelectionModelChangeRef.current?.([]);
|
|
3691
3693
|
}, [page]);
|
|
3692
3694
|
return {
|
|
3693
3695
|
rowCount,
|