@dooherceg/material-react-table 3.2.17 → 3.2.19
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.esm.js +3 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2715,9 +2715,8 @@ const handleUpdateRow = ({ getRowId, setRowsState, }) => {
|
|
|
2715
2715
|
});
|
|
2716
2716
|
return previousRows.map((row, index) => {
|
|
2717
2717
|
const rowId = getResolvedRowId(row, index, undefined, getRowId);
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
: row;
|
|
2718
|
+
const updatedRow = rowId !== undefined ? rowById.get(rowId) : undefined;
|
|
2719
|
+
return updatedRow !== undefined ? Object.assign(Object.assign({}, row), updatedRow) : row;
|
|
2721
2720
|
});
|
|
2722
2721
|
});
|
|
2723
2722
|
};
|
|
@@ -7202,7 +7201,7 @@ const MRT_NewEntryFormProvider = ({ table, children, }) => {
|
|
|
7202
7201
|
yield ((_a = formConfig === null || formConfig === void 0 ? void 0 : formConfig.onCancel) === null || _a === void 0 ? void 0 : _a.call(formConfig, { form: methods, mode, table }));
|
|
7203
7202
|
setNewEntryModal({ open: false });
|
|
7204
7203
|
});
|
|
7205
|
-
return (jsxRuntime.jsx(MRT_NewEntryFormActionsContext.Provider, { value: { handleCancel, handleSave }, children: jsxRuntime.jsx(RHF_FormProvider, { methods: methods, onSubmit: handleSave, children: children }) }));
|
|
7204
|
+
return (jsxRuntime.jsx(MRT_NewEntryFormActionsContext.Provider, { value: { handleCancel, handleSave }, children: jsxRuntime.jsx(RHF_FormProvider, { methods: methods, onSubmit: handleSave, style: { display: 'flex', flexDirection: 'column', overflow: 'auto' }, children: children }) }));
|
|
7206
7205
|
};
|
|
7207
7206
|
|
|
7208
7207
|
// Maps TModalPosition.vertical to a CSS alignItems value.
|