es-grid-template 1.7.39 → 1.7.40
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.
|
@@ -64,7 +64,7 @@ const Grid = props => {
|
|
|
64
64
|
const [rowSelection, setRowSelection] = React.useState(convertToObjTrue(mergedSelectedKeys));
|
|
65
65
|
const [grouping, setGrouping] = React.useState([]);
|
|
66
66
|
const [columnSizing, setColumnSizing] = React.useState({});
|
|
67
|
-
const [manualUpdate, setManualUpdate] = React.useState(false)
|
|
67
|
+
// const [manualUpdate, setManualUpdate] = React.useState(false)
|
|
68
68
|
// const [manualResize, setManualResize] = React.useState(false)
|
|
69
69
|
|
|
70
70
|
const [columnFilters, setColumnFilters] = React.useState([]);
|
|
@@ -149,13 +149,16 @@ const Grid = props => {
|
|
|
149
149
|
}
|
|
150
150
|
}, [columnHidden, table]);
|
|
151
151
|
React.useEffect(() => {
|
|
152
|
-
if (!manualUpdate) {
|
|
152
|
+
// if (!manualUpdate) {
|
|
153
|
+
if (Object.keys(rowSelection) !== Object.keys(mergedSelectedKeys)) {
|
|
153
154
|
setRowSelection(convertToObjTrue(mergedSelectedKeys));
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
+
|
|
157
|
+
// }
|
|
158
|
+
}, [mergedSelectedKeys]);
|
|
156
159
|
React.useEffect(() => {
|
|
157
160
|
if (isSelectionChange.isChange) {
|
|
158
|
-
setManualUpdate(true)
|
|
161
|
+
// setManualUpdate(true)
|
|
159
162
|
const aa = table.getState().rowSelection;
|
|
160
163
|
const dataTable = table.getRowModel().flatRows;
|
|
161
164
|
const ids = Object.keys(aa);
|
|
@@ -66,7 +66,7 @@ const Grid = props => {
|
|
|
66
66
|
const [rowSelection, setRowSelection] = _react.default.useState((0, _utils.convertToObjTrue)(mergedSelectedKeys));
|
|
67
67
|
const [grouping, setGrouping] = _react.default.useState([]);
|
|
68
68
|
const [columnSizing, setColumnSizing] = _react.default.useState({});
|
|
69
|
-
const [manualUpdate, setManualUpdate] =
|
|
69
|
+
// const [manualUpdate, setManualUpdate] = React.useState(false)
|
|
70
70
|
// const [manualResize, setManualResize] = React.useState(false)
|
|
71
71
|
|
|
72
72
|
const [columnFilters, setColumnFilters] = _react.default.useState([]);
|
|
@@ -151,13 +151,16 @@ const Grid = props => {
|
|
|
151
151
|
}
|
|
152
152
|
}, [columnHidden, table]);
|
|
153
153
|
_react.default.useEffect(() => {
|
|
154
|
-
if (!manualUpdate) {
|
|
154
|
+
// if (!manualUpdate) {
|
|
155
|
+
if (Object.keys(rowSelection) !== Object.keys(mergedSelectedKeys)) {
|
|
155
156
|
setRowSelection((0, _utils.convertToObjTrue)(mergedSelectedKeys));
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
+
|
|
159
|
+
// }
|
|
160
|
+
}, [mergedSelectedKeys]);
|
|
158
161
|
_react.default.useEffect(() => {
|
|
159
162
|
if (isSelectionChange.isChange) {
|
|
160
|
-
setManualUpdate(true)
|
|
163
|
+
// setManualUpdate(true)
|
|
161
164
|
const aa = table.getState().rowSelection;
|
|
162
165
|
const dataTable = table.getRowModel().flatRows;
|
|
163
166
|
const ids = Object.keys(aa);
|