@etsoo/react 1.4.15 → 1.4.16
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.
|
@@ -23,7 +23,6 @@ export function ResponsibleContainer(props) {
|
|
|
23
23
|
const { dimensions } = useDimensions(1, undefined, sizeReadyMiliseconds);
|
|
24
24
|
const rect = dimensions[0][2];
|
|
25
25
|
const showDataGrid = ((_a = rect === null || rect === void 0 ? void 0 : rect.width) !== null && _a !== void 0 ? _a : 0) >= dataGridMinWidth;
|
|
26
|
-
console.log(hasFields, showDataGrid, refs);
|
|
27
26
|
React.useEffect(() => {
|
|
28
27
|
if (rect != null && rect.height > 50 && height == null) {
|
|
29
28
|
let gridHeight = window.innerHeight - Math.round(rect.top + rect.height + 1);
|
|
@@ -67,6 +66,7 @@ export function ResponsibleContainer(props) {
|
|
|
67
66
|
}, [gridHeight, showDataGrid]);
|
|
68
67
|
// On submit callback
|
|
69
68
|
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 });
|
package/package.json
CHANGED
|
@@ -151,8 +151,6 @@ export function ResponsibleContainer<
|
|
|
151
151
|
const rect = dimensions[0][2];
|
|
152
152
|
const showDataGrid = (rect?.width ?? 0) >= dataGridMinWidth;
|
|
153
153
|
|
|
154
|
-
console.log(hasFields, showDataGrid, refs);
|
|
155
|
-
|
|
156
154
|
React.useEffect(() => {
|
|
157
155
|
if (rect != null && rect.height > 50 && height == null) {
|
|
158
156
|
let gridHeight =
|
|
@@ -224,6 +222,7 @@ export function ResponsibleContainer<
|
|
|
224
222
|
|
|
225
223
|
// On submit callback
|
|
226
224
|
const onSubmit = (data: FormData, _reset: boolean) => {
|
|
225
|
+
console.log(data, rect, refs.current.ref, showDataGrid);
|
|
227
226
|
if (data == null || rect == null || refs.current.ref == null) return;
|
|
228
227
|
refs.current.ref.reset({ data });
|
|
229
228
|
};
|