@etsoo/react 1.4.17 → 1.4.18
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.
|
@@ -43,6 +43,7 @@ export function ResponsibleContainer(props) {
|
|
|
43
43
|
return loadData(data);
|
|
44
44
|
};
|
|
45
45
|
const gridHeight = refs.current.height;
|
|
46
|
+
console.log(rect, gridHeight, showDataGrid);
|
|
46
47
|
const list = React.useMemo(() => {
|
|
47
48
|
if (gridHeight == null)
|
|
48
49
|
return;
|
|
@@ -66,14 +67,10 @@ export function ResponsibleContainer(props) {
|
|
|
66
67
|
}, [gridHeight, showDataGrid]);
|
|
67
68
|
// On submit callback
|
|
68
69
|
const onSubmit = (data, _reset) => {
|
|
69
|
-
console.log(data, rect, refs.current.ref, showDataGrid);
|
|
70
70
|
if (data == null || rect == null || refs.current.ref == null)
|
|
71
71
|
return;
|
|
72
72
|
refs.current.ref.reset({ data });
|
|
73
73
|
};
|
|
74
|
-
React.useEffect(() => {
|
|
75
|
-
console.log('useEffect', rect, refs.current.ref, showDataGrid);
|
|
76
|
-
}, []);
|
|
77
74
|
// Layout
|
|
78
75
|
return (React.createElement(Stack, null,
|
|
79
76
|
hasFields && (React.createElement(Box, { ref: dimensions[0][0], sx: searchBoxSx },
|
package/package.json
CHANGED
|
@@ -176,6 +176,7 @@ export function ResponsibleContainer<
|
|
|
176
176
|
};
|
|
177
177
|
|
|
178
178
|
const gridHeight = refs.current.height;
|
|
179
|
+
console.log(rect, gridHeight, showDataGrid);
|
|
179
180
|
const list = React.useMemo(() => {
|
|
180
181
|
if (gridHeight == null) return;
|
|
181
182
|
|
|
@@ -222,15 +223,10 @@ export function ResponsibleContainer<
|
|
|
222
223
|
|
|
223
224
|
// On submit callback
|
|
224
225
|
const onSubmit = (data: FormData, _reset: boolean) => {
|
|
225
|
-
console.log(data, rect, refs.current.ref, showDataGrid);
|
|
226
226
|
if (data == null || rect == null || refs.current.ref == null) return;
|
|
227
227
|
refs.current.ref.reset({ data });
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
-
React.useEffect(() => {
|
|
231
|
-
console.log('useEffect', rect, refs.current.ref, showDataGrid);
|
|
232
|
-
}, []);
|
|
233
|
-
|
|
234
230
|
// Layout
|
|
235
231
|
return (
|
|
236
232
|
<Stack>
|